Skip to content

Commit cea7bf1

Browse files
committed
add default implicit wait
1 parent bb2d3c9 commit cea7bf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/ruby/spec/spec_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ def start_session
3737

3838
def default_chrome_options
3939
options = Selenium::WebDriver::Chrome::Options.new
40+
options.browser_version = 'stable'
41+
options.timeouts = {implicit: 1}
4042
options.add_argument('disable-search-engine-choice-screen')
4143
options.add_argument('--no-sandbox') if Selenium::WebDriver::Platform.os == :linux
42-
options.browser_version = 'stable'
4344
options
4445
end
4546

0 commit comments

Comments
 (0)