Skip to content

Commit c1beae5

Browse files
committed
Try to wait for file upload in Ruby tests
1 parent d29ea82 commit c1beae5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rb/spec/integration/selenium/webdriver/remote/element_spec.rb

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

3434
driver.find_element(id: 'upload').send_keys('random string')
3535
driver.find_element(id: 'go').submit
36+
wait.until { driver.find_element(id: 'upload_label').displayed? }
3637

3738
driver.switch_to.frame('upload_target')
3839
body = driver.find_element(xpath: '//body')

0 commit comments

Comments
 (0)