We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed03607 + 65fd59c commit 81b0ddaCopy full SHA for 81b0dda
1 file changed
sample-code/examples/ruby/simple_test.rb
@@ -87,7 +87,7 @@ module IOS
87
wait_true { !exists { tag('UIAAlert') } }
88
89
# Alerts can be switched into
90
- button('show alert').click # Get a button by its text
+ wait { button('show alert').click } # Get a button by its text
91
alert = driver.switch_to.alert # Get the text of the current alert, using
92
# the Selenium::WebDriver directly
93
alerting_text = alert.text
0 commit comments