File tree Expand file tree Collapse file tree 5 files changed +15
-14
lines changed
lib/selenium/webdriver/remote
spec/integration/selenium/webdriver Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -260,8 +260,8 @@ task :test_rb => [
260
260
"//rb:remote-chrome-test" ,
261
261
"//rb:remote-firefox-test" ,
262
262
"//rb:remote-phantomjs-test" ,
263
- ( "//rb:marionette-test" if ENV [ 'MARIONETTE_PATH' ] ) ,
264
- ( "//rb:remote-marionette-test" if ENV [ 'MARIONETTE_PATH' ] ) ,
263
+ "//rb:marionette-test" ,
264
+ "//rb:remote-marionette-test" ,
265
265
( "//rb:safari-test" if mac? ) ,
266
266
( "//rb:remote-safari-test" if mac? ) ,
267
267
( "//rb:ie-test" if windows? ) ,
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def json_create(data)
117
117
caps . takes_element_screenshot = data . delete ( "takesElementScreenshot" ) if data . key? "takesElementScreenshot"
118
118
caps . page_load_strategy = data . delete ( "pageLoadStrategy" ) if data . key? "pageloadStrategy"
119
119
proxy = data . delete ( 'proxy' )
120
- caps . proxy = Proxy . json_create ( proxy ) unless proxy . empty?
120
+ caps . proxy = Proxy . json_create ( proxy ) unless proxy . nil? || proxy . empty?
121
121
122
122
# Remote Server Specific
123
123
caps [ :remote_session_id ] = data . delete ( 'webdriver.remote.sessionid' )
Original file line number Diff line number Diff line change @@ -112,14 +112,12 @@ def restart_remote_server(path = nil)
112
112
compliant_on :browser => :marionette do
113
113
# This passes in isolation, but can not run in suite due to combination of
114
114
# https://bugzilla.mozilla.org/show_bug.cgi?id=1228107 & https://github.com/SeleniumHQ/selenium/issues/1150
115
- not_compliant_on :driver => :remote do
116
- it "Uses Wires when setting marionette option in driver initialization" do
117
- @opt [ :marionette ] = true
118
- driver1 = Selenium ::WebDriver . for GlobalTestEnv . driver , @opt
115
+ it "Uses Wires when setting marionette option in driver initialization" do
116
+ @opt [ :marionette ] = true
117
+ driver1 = Selenium ::WebDriver . for GlobalTestEnv . driver , @opt
119
118
120
- expect ( driver1 . capabilities [ :takes_element_screenshot ] ) . to_not be_nil
121
- driver1 . quit
122
- end
119
+ expect ( driver1 . capabilities [ :takes_element_screenshot ] ) . to_not be_nil
120
+ driver1 . quit
123
121
end
124
122
end
125
123
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ def create_firefox_driver
215
215
end
216
216
217
217
def create_marionette_driver
218
- binary = ENV [ 'MARIONETTE_BINARY ' ]
218
+ binary = ENV [ 'FIREFOX_BINARY ' ]
219
219
WebDriver ::Firefox . path = binary if binary
220
220
221
221
WebDriver . for :firefox , :marionette => true
Original file line number Diff line number Diff line change 28
28
29
29
# https://github.com/jgraham/wires/issues/52
30
30
not_compliant_on :browser => :marionette do
31
- it "should find the active element" do
32
- driver . navigate . to url_for ( "xhtmlTest.html" )
33
- expect ( driver . switch_to . active_element ) . to be_an_instance_of ( WebDriver ::Element )
31
+ # https://github.com/SeleniumHQ/selenium/issues/1795
32
+ not_compliant_on :driver => :remote , :browser => [ :edge , :marionette ] do
33
+ it "should find the active element" do
34
+ driver . navigate . to url_for ( "xhtmlTest.html" )
35
+ expect ( driver . switch_to . active_element ) . to be_an_instance_of ( WebDriver ::Element )
36
+ end
34
37
end
35
38
end
36
39
You can’t perform that action at this time.
0 commit comments