@@ -177,8 +177,7 @@ module WebDriver
177
177
expect ( driver . title ) . to eq ( 'We Arrive Here' )
178
178
end
179
179
180
- # https://github.com/SeleniumHQ/selenium/issues/3339
181
- it 'should iterate over open windows when current window is closed' , except : { driver : :remote } do
180
+ it 'should iterate over open windows when current window is closed' do
182
181
driver . navigate . to url_for ( 'xhtmlTest.html' )
183
182
wait_for_element ( link : 'Create a new anonymous window' )
184
183
driver . find_element ( link : 'Create a new anonymous window' ) . click
@@ -199,8 +198,7 @@ module WebDriver
199
198
end
200
199
end
201
200
202
- # https://github.com/SeleniumHQ/selenium/issues/3339
203
- it 'should switch to a window and execute a block when current window is closed' , except : [ { browser : :safari } , { driver : :remote } ] do
201
+ it 'should switch to a window and execute a block when current window is closed' , except : { browser : :safari } do
204
202
driver . navigate . to url_for ( 'xhtmlTest.html' )
205
203
driver . find_element ( link : 'Open new window' ) . click
206
204
wait . until { driver . window_handles . size == 2 }
@@ -275,8 +273,7 @@ module WebDriver
275
273
wait_for_no_alert
276
274
end
277
275
278
- # https://github.com/SeleniumHQ/selenium/issues/3340
279
- it 'raises when calling #text on a closed alert' , except : { driver : :remote , platform : :macosx } do
276
+ it 'raises when calling #text on a closed alert' do
280
277
driver . navigate . to url_for ( 'alerts.html' )
281
278
wait_for_element ( id : 'alert' )
282
279
@@ -289,8 +286,7 @@ module WebDriver
289
286
expect { alert . text } . to raise_error ( Selenium ::WebDriver ::Error ::NoSuchAlertError )
290
287
end
291
288
292
- # https://github.com/SeleniumHQ/selenium/issues/3340
293
- it 'raises NoAlertOpenError if no alert is present' , except : [ { driver : :remote , platform : :macosx } , { browser : :ie } ] do
289
+ it 'raises NoAlertOpenError if no alert is present' , except : { browser : :ie } do
294
290
expect { driver . switch_to . alert } . to raise_error ( Selenium ::WebDriver ::Error ::NoSuchAlertError , /alert|modal/i )
295
291
end
296
292
0 commit comments