Skip to content

Commit 81b0dda

Browse files
committed
Merge pull request appium-boneyard#54 from mrudulp/master
Fixing Timing issue with alert box appearance
2 parents ed03607 + 65fd59c commit 81b0dda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sample-code/examples/ruby/simple_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module IOS
8787
wait_true { !exists { tag('UIAAlert') } }
8888

8989
# Alerts can be switched into
90-
button('show alert').click # Get a button by its text
90+
wait { button('show alert').click } # Get a button by its text
9191
alert = driver.switch_to.alert # Get the text of the current alert, using
9292
# the Selenium::WebDriver directly
9393
alerting_text = alert.text

0 commit comments

Comments
 (0)