File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
rb/spec/integration/selenium/webdriver/firefox Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,6 @@ def read_generated_prefs(from = nil)
32
32
File . read ( File . join ( dir , 'user.js' ) )
33
33
end
34
34
35
- def profile_opts
36
- if GlobalTestEnv . driver == :remote
37
- opt = { desired_capabilities : GlobalTestEnv . remote_capabilities . dup }
38
- opt [ :desired_capabilities ] [ :firefox_profile ] = profile
39
- opt [ :url ] = GlobalTestEnv . remote_server . webdriver_url if GlobalTestEnv . remote_server?
40
- opt
41
- else
42
- options = Options . new
43
- options . profile = profile
44
-
45
- { options : options }
46
- end
47
- end
48
-
49
35
it 'should set additional preferences' do
50
36
profile [ 'foo.number' ] = 123
51
37
profile [ 'foo.boolean' ] = true
@@ -175,15 +161,15 @@ def profile_opts
175
161
end
176
162
177
163
it 'should instantiate the browser with the correct profile' do
178
- create_driver! ( profile_opts ) do |driver |
164
+ create_driver! ( options : Options . new ( profile : profile ) ) do |driver |
179
165
expect { wait ( 5 ) . until { driver . find_element ( id : 'oneline' ) } } . not_to raise_error
180
166
end
181
167
end
182
168
183
169
it 'should be able to use the same profile more than once' do
184
- create_driver! ( profile_opts ) do |driver1 |
170
+ create_driver! ( options : Options . new ( profile : profile ) ) do |driver1 |
185
171
expect { wait ( 5 ) . until { driver1 . find_element ( id : 'oneline' ) } } . not_to raise_error
186
- create_driver! ( profile_opts ) do |driver2 |
172
+ create_driver! ( options : Options . new ( profile : profile ) ) do |driver2 |
187
173
expect { wait ( 5 ) . until { driver2 . find_element ( id : 'oneline' ) } } . not_to raise_error
188
174
end
189
175
end
You can’t perform that action at this time.
0 commit comments