We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44ac51f commit bf5d592Copy full SHA for bf5d592
rb/spec/integration/selenium/webdriver/action_builder_spec.rb
@@ -382,8 +382,10 @@ module WebDriver
382
iframe = driver.find_element(tag_name: 'iframe')
383
driver.switch_to.frame(iframe)
384
checkbox = driver.find_element(name: 'scroll_checkbox')
385
- sleep 0.5
386
- expect(in_viewport?(checkbox)).to be true
+
+ expect {
387
+ wait.until { in_viewport?(checkbox) }
388
+ }.not_to raise_error
389
end
390
391
it 'raises MoveTargetOutOfBoundsError when origin offset is out of viewport',
0 commit comments