File tree 5 files changed +16
-12
lines changed
rb/spec/integration/selenium/webdriver
5 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 22
22
module Selenium
23
23
module WebDriver
24
24
describe Driver , exclusive : { bidi : false , reason : 'Not yet implemented with BiDi' } do
25
- it_behaves_like 'driver that can be started concurrently' , exclude : { browser : %i[ safari safari_preview ] }
25
+ it_behaves_like 'driver that can be started concurrently' ,
26
+ exclude : { browser : %i[ safari safari_preview ] } ,
27
+ except : { driver : 'remote' , rbe : true , reason : 'Cannot start 2+ drivers at once.' }
26
28
27
29
it 'creates default capabilities' , exclude : { browser : %i[ safari safari_preview ] } do
28
30
reset_driver! do |driver |
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ module Firefox
36
36
end
37
37
end
38
38
39
- it 'is able to use the same profile more than once' do
39
+ it 'is able to use the same profile more than once' ,
40
+ except : { driver : 'remote' , rbe : true , reason : 'Cannot start 2+ drivers at once.' } do
40
41
reset_driver! ( profile : profile ) do |driver1 |
41
42
expect { wait ( 5 ) . until { driver1 . find_element ( id : 'oneline' ) } } . not_to raise_error
42
43
reset_driver! ( profile : profile ) do |driver2 |
Original file line number Diff line number Diff line change 57
57
guards . add_condition ( :platform , WebDriver ::Platform . os )
58
58
guards . add_condition ( :headless , !ENV [ 'HEADLESS' ] . nil? )
59
59
guards . add_condition ( :bidi , !ENV [ 'WEBDRIVER_BIDI' ] . nil? )
60
+ guards . add_condition ( :rbe , Dir . pwd . start_with? ( '/mnt/engflow' ) )
60
61
61
62
results = guards . disposition
62
63
send ( *results ) if results
Original file line number Diff line number Diff line change 30
30
create_driver!
31
31
end
32
32
33
- fit 'starts multiple drivers sequentially' , guard do
33
+ it 'starts multiple drivers sequentially' , guard do
34
34
expected_count = WebDriver ::Platform . ci ? 2 : 4
35
35
expected_count . times do
36
36
thread = Thread . new do
Original file line number Diff line number Diff line change @@ -88,15 +88,15 @@ def app_server
88
88
end
89
89
90
90
def remote_server
91
- if ENV . key? ( 'CHROMEDRIVER_BINARY' )
92
- args = [ "-Dwebdriver.chrome.driver=#{ ENV [ 'CHROMEDRIVER_BINARY' ] } " ]
93
- elsif ENV . key? ( 'MSEDGEDRIVER_BINARY' )
94
- args = [ "-Dwebdriver.edge.driver=#{ ENV [ 'MSEDGEDRIVER_BINARY' ] } " ]
95
- elsif ENV . key? ( 'GECKODRIVER_BINARY' )
96
- args = [ "-Dwebdriver.gecko.driver=#{ ENV [ 'GECKODRIVER_BINARY' ] } " ]
97
- else
98
- args = %w[ --selenium-manager true --enable-managed-downloads true ]
99
- end
91
+ args = if ENV . key? ( 'CHROMEDRIVER_BINARY' )
92
+ [ "-Dwebdriver.chrome.driver=#{ ENV [ 'CHROMEDRIVER_BINARY' ] } " ]
93
+ elsif ENV . key? ( 'MSEDGEDRIVER_BINARY' )
94
+ [ "-Dwebdriver.edge.driver=#{ ENV [ 'MSEDGEDRIVER_BINARY' ] } " ]
95
+ elsif ENV . key? ( 'GECKODRIVER_BINARY' )
96
+ [ "-Dwebdriver.gecko.driver=#{ ENV [ 'GECKODRIVER_BINARY' ] } " ]
97
+ else
98
+ %w[ --selenium-manager true --enable-managed-downloads true ]
99
+ end
100
100
101
101
@remote_server ||= Selenium ::Server . new (
102
102
remote_server_jar ,
You can’t perform that action at this time.
0 commit comments