@@ -20,6 +20,7 @@ public class AlertsTest : DriverTestFixture
20
20
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
21
21
[ IgnoreBrowser ( Browser . Remote ) ]
22
22
[ IgnoreBrowser ( Browser . Safari ) ]
23
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
23
24
public void ShouldBeAbleToOverrideTheWindowAlertMethod ( )
24
25
{
25
26
driver . Url = alertsPage ;
@@ -37,6 +38,7 @@ public void ShouldBeAbleToOverrideTheWindowAlertMethod()
37
38
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
38
39
[ IgnoreBrowser ( Browser . Remote ) ]
39
40
[ IgnoreBrowser ( Browser . Safari ) ]
41
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
40
42
public void ShouldAllowUsersToAcceptAnAlertManually ( )
41
43
{
42
44
driver . Url = alertsPage ;
@@ -56,6 +58,7 @@ public void ShouldAllowUsersToAcceptAnAlertManually()
56
58
[ IgnoreBrowser ( Browser . IPhone ) ]
57
59
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
58
60
[ IgnoreBrowser ( Browser . Safari ) ]
61
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
59
62
public void ShouldAllowUsersToAcceptAnAlertWithNoTextManually ( )
60
63
{
61
64
driver . Url = alertsPage ;
@@ -74,6 +77,7 @@ public void ShouldAllowUsersToAcceptAnAlertWithNoTextManually()
74
77
[ IgnoreBrowser ( Browser . Chrome ) ]
75
78
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
76
79
[ IgnoreBrowser ( Browser . Safari ) ]
80
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
77
81
public void ShouldGetTextOfAlertOpenedInSetTimeout ( )
78
82
{
79
83
driver . Url = alertsPage ;
@@ -102,6 +106,7 @@ public void ShouldGetTextOfAlertOpenedInSetTimeout()
102
106
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
103
107
[ IgnoreBrowser ( Browser . Remote ) ]
104
108
[ IgnoreBrowser ( Browser . Safari ) ]
109
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
105
110
public void ShouldAllowUsersToDismissAnAlertManually ( )
106
111
{
107
112
driver . Url = alertsPage ;
@@ -123,6 +128,7 @@ public void ShouldAllowUsersToDismissAnAlertManually()
123
128
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
124
129
[ IgnoreBrowser ( Browser . Remote ) ]
125
130
[ IgnoreBrowser ( Browser . Safari ) ]
131
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
126
132
public void ShouldAllowAUserToAcceptAPrompt ( )
127
133
{
128
134
driver . Url = alertsPage ;
@@ -144,6 +150,7 @@ public void ShouldAllowAUserToAcceptAPrompt()
144
150
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
145
151
[ IgnoreBrowser ( Browser . Remote ) ]
146
152
[ IgnoreBrowser ( Browser . Safari ) ]
153
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
147
154
public void ShouldAllowAUserToDismissAPrompt ( )
148
155
{
149
156
driver . Url = alertsPage ;
@@ -165,6 +172,7 @@ public void ShouldAllowAUserToDismissAPrompt()
165
172
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
166
173
[ IgnoreBrowser ( Browser . Remote ) ]
167
174
[ IgnoreBrowser ( Browser . Safari ) ]
175
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
168
176
public void ShouldAllowAUserToSetTheValueOfAPrompt ( )
169
177
{
170
178
driver . Url = alertsPage ;
@@ -188,6 +196,7 @@ public void ShouldAllowAUserToSetTheValueOfAPrompt()
188
196
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
189
197
[ IgnoreBrowser ( Browser . Remote ) ]
190
198
[ IgnoreBrowser ( Browser . Safari ) ]
199
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
191
200
public void SettingTheValueOfAnAlertThrows ( )
192
201
{
193
202
driver . Url = alertsPage ;
@@ -217,6 +226,7 @@ public void SettingTheValueOfAnAlertThrows()
217
226
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
218
227
[ IgnoreBrowser ( Browser . Remote ) ]
219
228
[ IgnoreBrowser ( Browser . Safari ) ]
229
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
220
230
public void ShouldAllowTheUserToGetTheTextOfAnAlert ( )
221
231
{
222
232
driver . Url = alertsPage ;
@@ -237,6 +247,7 @@ public void ShouldAllowTheUserToGetTheTextOfAnAlert()
237
247
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
238
248
[ IgnoreBrowser ( Browser . Remote ) ]
239
249
[ IgnoreBrowser ( Browser . Safari ) ]
250
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
240
251
public void ShouldAllowTheUserToGetTheTextOfAPrompt ( )
241
252
{
242
253
driver . Url = alertsPage ;
@@ -257,6 +268,7 @@ public void ShouldAllowTheUserToGetTheTextOfAPrompt()
257
268
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
258
269
[ IgnoreBrowser ( Browser . Remote ) ]
259
270
[ IgnoreBrowser ( Browser . Safari ) ]
271
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
260
272
[ ExpectedException ( typeof ( NoAlertPresentException ) ) ]
261
273
public void AlertShouldNotAllowAdditionalCommandsIfDimissed ( )
262
274
{
@@ -277,6 +289,7 @@ public void AlertShouldNotAllowAdditionalCommandsIfDimissed()
277
289
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
278
290
[ IgnoreBrowser ( Browser . Remote ) ]
279
291
[ IgnoreBrowser ( Browser . Safari ) ]
292
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
280
293
public void ShouldAllowUsersToAcceptAnAlertInAFrame ( )
281
294
{
282
295
driver . Url = alertsPage ;
@@ -296,6 +309,7 @@ public void ShouldAllowUsersToAcceptAnAlertInAFrame()
296
309
[ IgnoreBrowser ( Browser . Android ) ]
297
310
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
298
311
[ IgnoreBrowser ( Browser . Safari ) ]
312
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
299
313
public void ShouldAllowUsersToAcceptAnAlertInANestedFrame ( )
300
314
{
301
315
driver . Url = alertsPage ;
@@ -319,6 +333,7 @@ public void ShouldAllowUsersToAcceptAnAlertInANestedFrame()
319
333
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
320
334
[ IgnoreBrowser ( Browser . Remote ) ]
321
335
[ IgnoreBrowser ( Browser . Safari ) ]
336
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
322
337
[ ExpectedException ( typeof ( NoAlertPresentException ) ) ]
323
338
public void SwitchingToMissingAlertThrows ( )
324
339
{
@@ -336,6 +351,7 @@ public void SwitchingToMissingAlertThrows()
336
351
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
337
352
[ IgnoreBrowser ( Browser . Remote ) ]
338
353
[ IgnoreBrowser ( Browser . Safari ) ]
354
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
339
355
public void SwitchingToMissingAlertInAClosedWindowThrows ( )
340
356
{
341
357
string mainWindow = driver . CurrentWindowHandle ;
@@ -373,6 +389,7 @@ public void SwitchingToMissingAlertInAClosedWindowThrows()
373
389
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
374
390
[ IgnoreBrowser ( Browser . Remote ) ]
375
391
[ IgnoreBrowser ( Browser . Safari ) ]
392
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
376
393
public void PromptShouldUseDefaultValueIfNoKeysSent ( )
377
394
{
378
395
driver . Url = alertsPage ;
@@ -394,6 +411,7 @@ public void PromptShouldUseDefaultValueIfNoKeysSent()
394
411
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
395
412
[ IgnoreBrowser ( Browser . Remote ) ]
396
413
[ IgnoreBrowser ( Browser . Safari ) ]
414
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
397
415
public void PromptShouldHaveNullValueIfDismissed ( )
398
416
{
399
417
driver . Url = alertsPage ;
@@ -414,6 +432,7 @@ public void PromptShouldHaveNullValueIfDismissed()
414
432
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
415
433
[ IgnoreBrowser ( Browser . Remote ) ]
416
434
[ IgnoreBrowser ( Browser . Safari ) ]
435
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
417
436
public void HandlesTwoAlertsFromOneInteraction ( )
418
437
{
419
438
driver . Url = alertsPage ;
@@ -439,6 +458,7 @@ public void HandlesTwoAlertsFromOneInteraction()
439
458
[ Category ( "JavaScript" ) ]
440
459
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
441
460
[ IgnoreBrowser ( Browser . Safari ) ]
461
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
442
462
public void ShouldHandleAlertOnPageLoad ( )
443
463
{
444
464
driver . Url = alertsPage ;
@@ -458,6 +478,7 @@ public void ShouldHandleAlertOnPageLoad()
458
478
[ Category ( "JavaScript" ) ]
459
479
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
460
480
[ IgnoreBrowser ( Browser . Safari ) ]
481
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
461
482
public void ShouldHandleAlertOnPageLoadUsingGet ( )
462
483
{
463
484
driver . Url = EnvironmentManager . Instance . UrlBuilder . WhereIs ( "pageWithOnLoad.html" ) ;
@@ -476,6 +497,7 @@ public void ShouldHandleAlertOnPageLoadUsingGet()
476
497
[ IgnoreBrowser ( Browser . Chrome ) ]
477
498
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
478
499
[ IgnoreBrowser ( Browser . Safari ) ]
500
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
479
501
public void ShouldNotHandleAlertInAnotherWindow ( )
480
502
{
481
503
driver . Url = alertsPage ;
@@ -518,6 +540,7 @@ public void ShouldNotHandleAlertInAnotherWindow()
518
540
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
519
541
[ IgnoreBrowser ( Browser . Chrome ) ]
520
542
[ IgnoreBrowser ( Browser . Safari ) ]
543
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
521
544
public void ShouldHandleAlertOnPageUnload ( )
522
545
{
523
546
driver . Url = alertsPage ;
@@ -541,6 +564,7 @@ public void ShouldHandleAlertOnPageUnload()
541
564
[ IgnoreBrowser ( Browser . Chrome ) ]
542
565
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
543
566
[ IgnoreBrowser ( Browser . Safari ) ]
567
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
544
568
public void ShouldHandleAlertOnWindowClose ( )
545
569
{
546
570
driver . Url = alertsPage ;
@@ -576,6 +600,7 @@ public void ShouldHandleAlertOnWindowClose()
576
600
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
577
601
[ IgnoreBrowser ( Browser . Opera ) ]
578
602
[ IgnoreBrowser ( Browser . Safari ) ]
603
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
579
604
public void IncludesAlertTextInUnhandledAlertException ( )
580
605
{
581
606
driver . Url = alertsPage ;
@@ -598,6 +623,7 @@ public void IncludesAlertTextInUnhandledAlertException()
598
623
[ IgnoreBrowser ( Browser . Opera ) ]
599
624
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
600
625
[ IgnoreBrowser ( Browser . Safari ) ]
626
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
601
627
public void CanQuitWhenAnAlertIsPresent ( )
602
628
{
603
629
driver . Url = alertsPage ;
@@ -609,6 +635,7 @@ public void CanQuitWhenAnAlertIsPresent()
609
635
[ Test ]
610
636
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
611
637
[ IgnoreBrowser ( Browser . Safari ) ]
638
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
612
639
public void ShouldHandleOnBeforeUnloadAlert ( )
613
640
{
614
641
driver . Url = EnvironmentManager . Instance . UrlBuilder . WhereIs ( "pageWithOnBeforeUnloadMessage.html" ) ;
@@ -630,6 +657,7 @@ public void ShouldHandleOnBeforeUnloadAlert()
630
657
[ Test ]
631
658
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
632
659
[ IgnoreBrowser ( Browser . Safari ) ]
660
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
633
661
[ NeedsFreshDriver ( AfterTest = true ) ]
634
662
public void ShouldHandleOnBeforeUnloadAlertAtClose ( )
635
663
{
@@ -647,6 +675,7 @@ public void ShouldHandleOnBeforeUnloadAlertAtClose()
647
675
[ Test ]
648
676
[ IgnoreBrowser ( Browser . PhantomJS , "Alert commands not yet implemented in GhostDriver" ) ]
649
677
[ IgnoreBrowser ( Browser . Safari ) ]
678
+ [ IgnoreBrowser ( Browser . WindowsPhone , "Alert handling not yet implemented on Windows Phone" ) ]
650
679
public void ShouldThrowAnExceptionIfAnAlertHasNotBeenDealtWithAndDismissTheAlert ( )
651
680
{
652
681
IHasCapabilities capabilitiesDriver = driver as IHasCapabilities ;
0 commit comments