Skip to content

Get Text succeeds and returns None if the element is not found instead of failing #115

@ombre42

Description

@ombre42

Execute: ${text} Get Text id=doesNotExist

Expected: fails with error similar to other keywords such as
ValueError: Element 'id=doesNotExist' not found.
or
ValueError: Element locator 'id=doesNotExist' did not match any elements.

Actual: keyword succeeds and ${text} is assigned a value of None

This appears to be the same root cause as Issue #114 - _ElementKeywords._get_text() returns None if the element is not found instead of raising an exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions