Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#42 Element not found and Element found handling restructuring #52

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

Nepitwin
Copy link
Member

No description provided.

@Nepitwin Nepitwin added the bug Something isn't working label Jan 29, 2022
@Nepitwin Nepitwin requested a review from noubar January 29, 2022 22:42
@Nepitwin Nepitwin self-assigned this Jan 29, 2022
@Nepitwin Nepitwin linked an issue Jan 29, 2022 that may be closed by this pull request
@Nepitwin
Copy link
Member Author

New Syntax

  • You can now decide to use the old syntax or new style by using the flag parameter use_exceptions.
  • This is by default ${TRUE} to avoid this breaks for checkups if a ui element is displaying delayed.
# This throws a flaui exception and stop test exeuction
Element Should Exist      /WRONG/XPATH
Element Should Not Exist  /VALID_XPATH

# Usage with Wait Until Keyword Succeeds
Wait Until Keyword Succeeds  Element Should Exist      /VALID_XPATH
Wait Until Keyword Succeeds  Element Should Not Exist  /VALID_XPATH

# If you want to check the return value by your own syntax.
# Wait Until Keyword Succeeds will not work anymore because this keyword will always Return True or False now
${RESULT}  Element Should Exist  /VALID_XPATH  ${FALSE}
${RESULT}  Element Should Not Exist  /WRONG/XPATH  ${FALSE}

@Nepitwin Nepitwin force-pushed the bugfix/popup#43 branch 7 times, most recently from f438b52 to a55f5f2 Compare January 30, 2022 18:19
atests/Element.robot Show resolved Hide resolved
@Nepitwin Nepitwin merged commit 229debd into main Jan 31, 2022
@Nepitwin Nepitwin deleted the bugfix/popup#43 branch January 31, 2022 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot handle pop up window
2 participants