Skip to content

Commit

Permalink
Merge pull request #157 from plone/wait_for_element
Browse files Browse the repository at this point in the history
Makes ``Wait For Then Click Element`` keyword more robust
  • Loading branch information
davisagli authored May 1, 2024
2 parents 51caf70 + 2802561 commit 15ac811
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/157.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Makes ``Wait For Then Click Element`` keyword more robust. @wesleybl
6 changes: 4 additions & 2 deletions src/plone/app/robotframework/selenium.robot
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ Wait For Element
... Element must match exactly one time.
[Arguments] ${element}
Wait Until Page Contains Element ${element}
Set Focus To Element ${element}
Wait Until Element Is Visible ${element}
Wait Until Element Is Enabled ${element}
Set Focus To Element ${element}
Sleep 0.1
${count} = Get Element Count ${element}
Should Be Equal as Numbers ${count} 1
Expand All @@ -112,8 +113,9 @@ Wait For Elements
... Element may match more than once.
[Arguments] ${element}
Wait Until Page Contains Element ${element}
Set Focus To Element ${element}
Wait Until Element Is Visible ${element}
Wait Until Element Is Enabled ${element}
Set Focus To Element ${element}

Wait For Then Click Element
[Documentation] Can contain css=, jquery=, or any other element selector.
Expand Down

0 comments on commit 15ac811

Please sign in to comment.