@@ -50,16 +50,13 @@ def restart_remote_server(path = nil)
50
50
expect ( driver1 . capabilities . platform_name ) . to_not be_nil
51
51
expect ( driver1 . capabilities . platform_version ) . to_not be_nil
52
52
expect ( driver1 . capabilities . accept_ssl_certs ) . to be == false
53
- expect ( driver1 . capabilities . takes_screenshot ) . to be == true
54
- expect ( driver1 . capabilities . takes_element_screenshot ) . to be == true
55
53
expect ( driver1 . capabilities . page_load_strategy ) . to be == 'normal'
56
54
expect ( driver1 . capabilities . proxy ) . to be_nil
57
55
if GlobalTestEnv . driver == :remote
58
56
expect ( driver1 . capabilities . remote_session_id ) . to match /^\h {8}-\h {4}-\h {4}-\h {4}-\h {10}/
59
57
else
60
58
expect ( driver1 . capabilities . remote_session_id ) . to be_nil
61
59
end
62
- expect ( driver1 . capabilities . specification_level ) . to be == '1'
63
60
expect ( driver1 . capabilities . raise_accessibility_exceptions ) . to be == false
64
61
expect ( driver1 . capabilities . rotatable ) . to be == false
65
62
ensure
@@ -75,7 +72,7 @@ def restart_remote_server(path = nil)
75
72
driver1 = Selenium ::WebDriver . for GlobalTestEnv . driver , @opt
76
73
77
74
default_version = driver1 . capabilities . version
78
- expect { driver1 . capabilities . specification_level } . to_not raise_exception NoMethodError
75
+ expect { driver1 . capabilities . browser_version } . to_not raise_exception NoMethodError
79
76
driver1 . quit
80
77
81
78
if GlobalTestEnv . driver == :remote
@@ -87,7 +84,7 @@ def restart_remote_server(path = nil)
87
84
driver2 = Selenium ::WebDriver . for GlobalTestEnv . driver , @opt
88
85
89
86
expect ( driver2 . capabilities . version ) . to_not be == default_version
90
- expect { driver2 . capabilities . specification_level } . to_not raise_exception NoMethodError
87
+ expect { driver2 . capabilities . browser_version } . to_not raise_exception NoMethodError
91
88
driver2 . quit
92
89
ensure
93
90
Firefox ::Binary . reset_path!
@@ -97,44 +94,43 @@ def restart_remote_server(path = nil)
97
94
98
95
context "when designated firefox binary includes Marionette" do
99
96
compliant_on :browser => :marionette do
100
- # This passes in isolation, but can not run in suite due to combination of
101
- # https://bugzilla.mozilla.org/show_bug.cgi?id=1228107 & https://github.com/SeleniumHQ/selenium/issues/1150
102
- not_compliant_on :driver => :resmote do
103
- it "Uses Wires when setting marionette option in capabilities" do
104
- caps = Selenium ::WebDriver ::Remote ::Capabilities . firefox ( :marionette => true )
105
- @opt [ :desired_capabilities ] = caps
106
- expect { @driver1 = Selenium ::WebDriver . for GlobalTestEnv . driver , @opt } . to_not raise_exception
107
- @driver1 . quit
108
- end
97
+ it "Uses geckodriver when setting marionette option in capabilities" do
98
+ caps = Selenium ::WebDriver ::Remote ::Capabilities . firefox ( :marionette => true )
99
+ @opt [ :desired_capabilities ] = caps
100
+ expect { @driver1 = Selenium ::WebDriver . for GlobalTestEnv . driver , @opt } . to_not raise_exception
101
+ @driver1 . quit
109
102
end
110
103
end
111
104
112
105
compliant_on :browser => :marionette do
113
106
# This passes in isolation, but can not run in suite due to combination of
114
107
# https://bugzilla.mozilla.org/show_bug.cgi?id=1228107 & https://github.com/SeleniumHQ/selenium/issues/1150
115
- it "Uses Wires when setting marionette option in driver initialization" do
108
+ it "Uses geckodriver when setting marionette option in driver initialization" do
116
109
@opt [ :marionette ] = true
117
110
driver1 = Selenium ::WebDriver . for GlobalTestEnv . driver , @opt
118
111
119
- expect ( driver1 . capabilities [ :takes_element_screenshot ] ) . to_not be_nil
112
+ expect ( driver1 . capabilities [ :browser_version ] ) . to_not be_nil
120
113
driver1 . quit
121
114
end
122
115
end
123
116
124
117
# test with firefox due to https://bugzilla.mozilla.org/show_bug.cgi?id=1228121
125
118
compliant_on :browser => :firefox do
126
- it "Does not use wires when marionette option is not set" do
119
+ it "Does not use geckodriver when marionette option is not set" do
127
120
driver1 = Selenium ::WebDriver . for GlobalTestEnv . driver , @opt
128
121
129
- expect { driver1 . capabilities . specification_level } . to raise_exception NoMethodError
122
+ expect { driver1 . capabilities . browser_version } . to raise_exception NoMethodError
130
123
driver1 . quit
131
124
end
132
125
end
133
126
134
127
compliant_on :driver => :marionette do
135
- context 'when shared example' do
136
- before { driver }
137
- it_behaves_like "driver that can be started concurrently" , :marionette
128
+ # https://github.com/mozilla/geckodriver/issues/58
129
+ not_compliant_on :driver => :marionette do
130
+ context 'when shared example' do
131
+ before { driver }
132
+ it_behaves_like "driver that can be started concurrently" , :marionette
133
+ end
138
134
end
139
135
end
140
136
end
@@ -150,7 +146,7 @@ def restart_remote_server(path = nil)
150
146
end
151
147
end
152
148
153
- it "Raises Wires Exception when setting marionette option in capabilities" do
149
+ it "Raises geckodriver Exception when setting marionette option in capabilities" do
154
150
begin
155
151
caps = Selenium ::WebDriver ::Remote ::Capabilities . firefox ( :marionette => true ,
156
152
:firefox_binary => ENV [ 'PRE_MARIONETTE_BINARY' ] )
@@ -161,7 +157,7 @@ def restart_remote_server(path = nil)
161
157
end
162
158
end
163
159
164
- it "Raises Wires Exception when setting marionette option in driver initialization" do
160
+ it "Raises geckodriver Exception when setting marionette option in driver initialization" do
165
161
begin
166
162
caps = Selenium ::WebDriver ::Remote ::Capabilities . firefox ( :firefox_binary => ENV [ 'PRE_MARIONETTE_BINARY' ] )
167
163
@opt . merge! ( :marionette => true , :desired_capabilities => caps )
0 commit comments