Skip to content

Commit 30b1da6

Browse files
committed
check to see if it is a race condition
1 parent ba35f38 commit 30b1da6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

rb/spec/integration/selenium/webdriver/action_builder_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ module WebDriver
165165

166166
it 'executes with equivalent pointer methods', except: {browser: %i[safari safari_preview]} do
167167
driver.navigate.to url_for('javascriptPage.html')
168+
short_wait.until { driver.find_element(id: 'doubleClickField') }
168169
element = driver.find_element(id: 'doubleClickField')
169170

170171
driver.action.move_to(element)

rb/spec/integration/selenium/webdriver/driver_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ module WebDriver
337337

338338
it 'is able to pass element arguments' do
339339
driver.navigate.to url_for('javascriptPage.html')
340+
short_wait.until { driver.find_element(id: 'plainButton') }
340341
button = driver.find_element(id: 'plainButton')
341342
js = "arguments[0]['flibble'] = arguments[0].getAttribute('id'); return arguments[0]['flibble'];"
342343
expect(driver.execute_script(js, button))

0 commit comments

Comments
 (0)