diff --git a/rb/spec/integration/selenium/webdriver/timeout_spec.rb b/rb/spec/integration/selenium/webdriver/timeout_spec.rb index f7255816aafde..b42daca0abb27 100644 --- a/rb/spec/integration/selenium/webdriver/timeout_spec.rb +++ b/rb/spec/integration/selenium/webdriver/timeout_spec.rb @@ -34,7 +34,7 @@ module WebDriver driver.manage.timeouts.implicit_wait = 6 driver.find_element(id: 'adder').click - driver.find_element(id: 'box0') + expect { driver.find_element(id: 'box0') }.not_to raise_error end it 'should still fail to find an element with implicit waits enabled' do