File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def start_session
41
41
def default_chrome_options
42
42
options = Selenium ::WebDriver ::Chrome ::Options . new
43
43
options . browser_version = 'stable'
44
- options . timeouts = { implicit : 1 }
44
+ options . timeouts = { implicit : 1500 }
45
45
options . add_argument ( 'disable-search-engine-choice-screen' )
46
46
options . add_argument ( '--no-sandbox' ) if Selenium ::WebDriver ::Platform . os == :linux
47
47
options
@@ -61,9 +61,11 @@ def start_firefox
61
61
62
62
def start_server
63
63
jar = Selenium ::WebDriver ::SeleniumManager . binary_paths ( '--grid' ) [ 'driver_path' ]
64
+ log_level = Selenium ::WebDriver . logger . level == :debug ? 'FINE' : 'INFO'
65
+
64
66
@server = Selenium ::Server . new ( jar ,
65
67
background : true ,
66
- log_level : 'FINE' ,
68
+ log_level : log_level ,
67
69
args : %w[ --selenium-manager true --enable-managed-downloads true ] )
68
70
@server . start
69
71
end
You can’t perform that action at this time.
0 commit comments