@@ -57,9 +57,6 @@ def testShouldBeAbleToOverrideTheWindowAlertMethod(driver, pages):
57
57
raise e
58
58
59
59
60
- @pytest .mark .xfail_phantomjs (
61
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
62
- raises = WebDriverException )
63
60
@pytest .mark .xfail_chrome (
64
61
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
65
62
def testShouldAllowUsersToAcceptAnAlertManually (driver , pages ):
@@ -71,9 +68,6 @@ def testShouldAllowUsersToAcceptAnAlertManually(driver, pages):
71
68
assert "Testing Alerts" == driver .title
72
69
73
70
74
- @pytest .mark .xfail_phantomjs (
75
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
76
- raises = WebDriverException )
77
71
@pytest .mark .xfail_chrome (
78
72
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
79
73
def testShouldAllowUsersToAcceptAnAlertWithNoTextManually (driver , pages ):
@@ -86,9 +80,6 @@ def testShouldAllowUsersToAcceptAnAlertWithNoTextManually(driver, pages):
86
80
assert "Testing Alerts" == driver .title
87
81
88
82
89
- @pytest .mark .xfail_phantomjs (
90
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
91
- raises = WebDriverException )
92
83
@pytest .mark .xfail_chrome (
93
84
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
94
85
def testShouldGetTextOfAlertOpenedInSetTimeout (driver , pages ):
@@ -109,9 +100,6 @@ def testShouldGetTextOfAlertOpenedInSetTimeout(driver, pages):
109
100
@pytest .mark .xfail_chrome (
110
101
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=26 and https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' ,
111
102
run = False )
112
- @pytest .mark .xfail_phantomjs (
113
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
114
- raises = WebDriverException )
115
103
def testShouldAllowUsersToDismissAnAlertManually (driver , pages ):
116
104
pages .load ("alerts.html" )
117
105
driver .find_element (by = By .ID , value = "alert" ).click ()
@@ -121,9 +109,6 @@ def testShouldAllowUsersToDismissAnAlertManually(driver, pages):
121
109
assert "Testing Alerts" == driver .title
122
110
123
111
124
- @pytest .mark .xfail_phantomjs (
125
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
126
- raises = WebDriverException )
127
112
@pytest .mark .xfail_chrome (
128
113
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
129
114
def testShouldAllowAUserToAcceptAPrompt (driver , pages ):
@@ -136,9 +121,6 @@ def testShouldAllowAUserToAcceptAPrompt(driver, pages):
136
121
assert "Testing Alerts" == driver .title
137
122
138
123
139
- @pytest .mark .xfail_phantomjs (
140
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
141
- raises = WebDriverException )
142
124
@pytest .mark .xfail_chrome (
143
125
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
144
126
def testShouldAllowAUserToDismissAPrompt (driver , pages ):
@@ -153,9 +135,6 @@ def testShouldAllowAUserToDismissAPrompt(driver, pages):
153
135
154
136
@pytest .mark .xfail_chrome (
155
137
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
156
- @pytest .mark .xfail_phantomjs (
157
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
158
- raises = WebDriverException )
159
138
def testShouldAllowAUserToSetTheValueOfAPrompt (driver , pages ):
160
139
pages .load ("alerts.html" )
161
140
driver .find_element (by = By .ID , value = "prompt" ).click ()
@@ -169,9 +148,6 @@ def testShouldAllowAUserToSetTheValueOfAPrompt(driver, pages):
169
148
170
149
@pytest .mark .xfail_chrome (
171
150
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1353' )
172
- @pytest .mark .xfail_phantomjs (
173
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
174
- raises = WebDriverException )
175
151
def testSettingTheValueOfAnAlertThrows (driver , pages ):
176
152
pages .load ("alerts.html" )
177
153
driver .find_element (By .ID , "alert" ).click ()
@@ -186,9 +162,6 @@ def testSettingTheValueOfAnAlertThrows(driver, pages):
186
162
condition = sys .platform == 'darwin' ,
187
163
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=26' ,
188
164
run = False )
189
- @pytest .mark .xfail_phantomjs (
190
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
191
- raises = WebDriverException )
192
165
def testAlertShouldNotAllowAdditionalCommandsIfDimissed (driver , pages ):
193
166
pages .load ("alerts.html" )
194
167
driver .find_element (By .ID , "alert" ).click ()
@@ -200,9 +173,6 @@ def testAlertShouldNotAllowAdditionalCommandsIfDimissed(driver, pages):
200
173
alert .text
201
174
202
175
203
- @pytest .mark .xfail_phantomjs (
204
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
205
- raises = WebDriverException )
206
176
@pytest .mark .xfail_chrome (
207
177
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
208
178
@pytest .mark .xfail_marionette (reason = 'Fails on travis' )
@@ -217,9 +187,6 @@ def testShouldAllowUsersToAcceptAnAlertInAFrame(driver, pages):
217
187
assert "Testing Alerts" == driver .title
218
188
219
189
220
- @pytest .mark .xfail_phantomjs (
221
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
222
- raises = WebDriverException )
223
190
@pytest .mark .xfail_chrome (
224
191
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
225
192
@pytest .mark .xfail_marionette (reason = 'Fails on travis' )
@@ -241,9 +208,6 @@ def testShouldThrowAnExceptionIfAnAlertHasNotBeenDealtWithAndDismissTheAlert():
241
208
# //TODO(David) Complete this test
242
209
243
210
244
- @pytest .mark .xfail_phantomjs (
245
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
246
- raises = WebDriverException )
247
211
@pytest .mark .xfail_chrome (
248
212
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
249
213
def testPromptShouldUseDefaultValueIfNoKeysSent (driver , pages ):
@@ -257,9 +221,6 @@ def testPromptShouldUseDefaultValueIfNoKeysSent(driver, pages):
257
221
assert "This is a default value" == txt
258
222
259
223
260
- @pytest .mark .xfail_phantomjs (
261
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
262
- raises = WebDriverException )
263
224
@pytest .mark .xfail_chrome (
264
225
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
265
226
def testPromptShouldHaveNullValueIfDismissed (driver , pages ):
@@ -271,9 +232,6 @@ def testPromptShouldHaveNullValueIfDismissed(driver, pages):
271
232
assert "null" == driver .find_element (By .ID , "text" ).text
272
233
273
234
274
- @pytest .mark .xfail_phantomjs (
275
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
276
- raises = WebDriverException )
277
235
@pytest .mark .xfail_chrome (
278
236
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
279
237
def testHandlesTwoAlertsFromOneInteraction (driver , pages ):
@@ -293,9 +251,6 @@ def testHandlesTwoAlertsFromOneInteraction(driver, pages):
293
251
assert driver .find_element (By .ID , "text2" ).text == "cheddar"
294
252
295
253
296
- @pytest .mark .xfail_phantomjs (
297
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
298
- raises = WebDriverException )
299
254
@pytest .mark .xfail_chrome (
300
255
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
301
256
def testShouldHandleAlertOnPageLoad (driver , pages ):
@@ -307,9 +262,6 @@ def testShouldHandleAlertOnPageLoad(driver, pages):
307
262
assert "onload" == value
308
263
309
264
310
- @pytest .mark .xfail_phantomjs (
311
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
312
- raises = WebDriverException )
313
265
def testShouldHandleAlertOnPageLoadUsingGet (driver , pages ):
314
266
pages .load ("pageWithOnLoad.html" )
315
267
alert = _waitForAlert (driver )
@@ -320,9 +272,6 @@ def testShouldHandleAlertOnPageLoadUsingGet(driver, pages):
320
272
WebDriverWait (driver , 3 ).until (EC .text_to_be_present_in_element ((By .TAG_NAME , "p" ), "Page with onload event handler" ))
321
273
322
274
323
- @pytest .mark .xfail_phantomjs (
324
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
325
- raises = WebDriverException )
326
275
@pytest .mark .xfail_chrome (
327
276
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
328
277
def testShouldHandleAlertOnPageBeforeUnload (driver , pages ):
@@ -341,9 +290,6 @@ def testShouldHandleAlertOnPageBeforeUnload(driver, pages):
341
290
WebDriverWait (driver , 3 ).until (EC .title_is ("Testing Alerts" ))
342
291
343
292
344
- @pytest .mark .xfail_phantomjs (
345
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
346
- raises = WebDriverException )
347
293
@pytest .mark .xfail_chrome (
348
294
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
349
295
def _testShouldHandleAlertOnPageBeforeUnloadAtQuit (driver , pages ):
@@ -358,9 +304,6 @@ def _testShouldHandleAlertOnPageBeforeUnloadAtQuit(driver, pages):
358
304
driver .quit ()
359
305
360
306
361
- @pytest .mark .xfail_phantomjs (
362
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
363
- raises = WebDriverException )
364
307
@pytest .mark .xfail_chrome (
365
308
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
366
309
def testShouldAllowTheUserToGetTheTextOfAnAlert (driver , pages ):
@@ -374,9 +317,6 @@ def testShouldAllowTheUserToGetTheTextOfAnAlert(driver, pages):
374
317
375
318
@pytest .mark .xfail_chrome (
376
319
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
377
- @pytest .mark .xfail_phantomjs (
378
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
379
- raises = WebDriverException )
380
320
def testShouldAllowTheUserToGetTheTextOfAPrompt (driver , pages ):
381
321
pages .load ("alerts.html" )
382
322
driver .find_element (By .ID , "prompt" ).click ()
@@ -388,9 +328,6 @@ def testShouldAllowTheUserToGetTheTextOfAPrompt(driver, pages):
388
328
assert "Enter something" == value
389
329
390
330
391
- @pytest .mark .xfail_phantomjs (
392
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
393
- raises = WebDriverException )
394
331
@pytest .mark .xfail_chrome (
395
332
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500' )
396
333
def testAlertShouldNotAllowAdditionalCommandsIfDismissed (driver , pages ):
@@ -408,9 +345,6 @@ def testAlertShouldNotAllowAdditionalCommandsIfDismissed(driver, pages):
408
345
reason = 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=1537' )
409
346
@pytest .mark .xfail_marionette (
410
347
reason = 'https://bugzilla.mozilla.org/show_bug.cgi?id=1279211' )
411
- @pytest .mark .xfail_phantomjs (
412
- reason = 'https://github.com/detro/ghostdriver/issues/20' ,
413
- raises = WebDriverException )
414
348
def testUnexpectedAlertPresentExceptionContainsAlertText (driver , pages ):
415
349
pages .load ("alerts.html" )
416
350
driver .find_element (by = By .ID , value = "alert" ).click ()
0 commit comments