7
7
namespace OpenQA . Selenium
8
8
{
9
9
[ TestFixture ]
10
- [ IgnoreBrowser ( Browser . Edge ) ]
11
10
public class AlertsTest : DriverTestFixture
12
11
{
13
12
[ Test ]
@@ -21,6 +20,7 @@ public void ShouldBeAbleToOverrideTheWindowAlertMethod()
21
20
}
22
21
23
22
[ Test ]
23
+ [ IgnoreBrowser ( Browser . Edge , "Issue getting alert text in Edge driver" ) ]
24
24
public void ShouldAllowUsersToAcceptAnAlertManually ( )
25
25
{
26
26
driver . Url = CreateAlertPage ( "cheese" ) ;
@@ -52,6 +52,7 @@ public void ShouldThrowArgumentNullExceptionWhenKeysNull()
52
52
}
53
53
54
54
[ Test ]
55
+ [ IgnoreBrowser ( Browser . Edge , "Issue getting alert text in Edge driver" ) ]
55
56
public void ShouldAllowUsersToAcceptAnAlertWithNoTextManually ( )
56
57
{
57
58
driver . Url = CreateAlertPage ( "" ) ;
@@ -68,6 +69,7 @@ public void ShouldAllowUsersToAcceptAnAlertWithNoTextManually()
68
69
[ Test ]
69
70
[ IgnoreBrowser ( Browser . IE , "This is the correct behavior, for the SwitchTo call to throw if it happens before the setTimeout call occurs in the browser and the alert is displayed." ) ]
70
71
[ IgnoreBrowser ( Browser . Chrome , "This is the correct behavior, for the SwitchTo call to throw if it happens before the setTimeout call occurs in the browser and the alert is displayed." ) ]
72
+ [ IgnoreBrowser ( Browser . Edge , "This is the correct behavior, for the SwitchTo call to throw if it happens before the setTimeout call occurs in the browser and the alert is displayed." ) ]
71
73
public void ShouldGetTextOfAlertOpenedInSetTimeout ( )
72
74
{
73
75
driver . Url = EnvironmentManager . Instance . UrlBuilder . CreateInlinePage ( new InlinePage ( )
@@ -94,6 +96,7 @@ public void ShouldGetTextOfAlertOpenedInSetTimeout()
94
96
}
95
97
96
98
[ Test ]
99
+ [ IgnoreBrowser ( Browser . Edge , "Issue getting alert text in Edge driver" ) ]
97
100
public void ShouldAllowUsersToDismissAnAlertManually ( )
98
101
{
99
102
driver . Url = CreateAlertPage ( "cheese" ) ;
@@ -108,6 +111,7 @@ public void ShouldAllowUsersToDismissAnAlertManually()
108
111
}
109
112
110
113
[ Test ]
114
+ [ IgnoreBrowser ( Browser . Edge , "Driver does not properly handle prompt() dialogs." ) ]
111
115
public void ShouldAllowAUserToAcceptAPrompt ( )
112
116
{
113
117
driver . Url = CreatePromptPage ( null ) ;
@@ -122,6 +126,7 @@ public void ShouldAllowAUserToAcceptAPrompt()
122
126
}
123
127
124
128
[ Test ]
129
+ [ IgnoreBrowser ( Browser . Edge , "Driver does not properly handle prompt() dialogs." ) ]
125
130
public void ShouldAllowAUserToDismissAPrompt ( )
126
131
{
127
132
driver . Url = CreatePromptPage ( null ) ;
@@ -136,6 +141,7 @@ public void ShouldAllowAUserToDismissAPrompt()
136
141
}
137
142
138
143
[ Test ]
144
+ [ IgnoreBrowser ( Browser . Edge , "Driver does not properly handle prompt() dialogs." ) ]
139
145
public void ShouldAllowAUserToSetTheValueOfAPrompt ( )
140
146
{
141
147
driver . Url = CreatePromptPage ( null ) ;
@@ -152,6 +158,7 @@ public void ShouldAllowAUserToSetTheValueOfAPrompt()
152
158
153
159
[ Test ]
154
160
[ IgnoreBrowser ( Browser . Chrome , "Chrome does not throw when setting the text of an alert" ) ]
161
+ [ IgnoreBrowser ( Browser . Edge , "Setting value of alert hangs Edge." ) ]
155
162
public void SettingTheValueOfAnAlertThrows ( )
156
163
{
157
164
driver . Url = CreateAlertPage ( "cheese" ) ;
@@ -174,6 +181,7 @@ public void SettingTheValueOfAnAlertThrows()
174
181
}
175
182
176
183
[ Test ]
184
+ [ IgnoreBrowser ( Browser . Edge , "Driver does not properly get text of alert." ) ]
177
185
public void ShouldAllowTheUserToGetTheTextOfAnAlert ( )
178
186
{
179
187
driver . Url = CreateAlertPage ( "cheese" ) ;
@@ -188,6 +196,7 @@ public void ShouldAllowTheUserToGetTheTextOfAnAlert()
188
196
}
189
197
190
198
[ Test ]
199
+ [ IgnoreBrowser ( Browser . Edge , "Driver does not properly handle prompt() dialogs." ) ]
191
200
public void ShouldAllowTheUserToGetTheTextOfAPrompt ( )
192
201
{
193
202
driver . Url = CreatePromptPage ( null ) ;
@@ -300,6 +309,7 @@ public void SwitchingToMissingAlertInAClosedWindowThrows()
300
309
}
301
310
302
311
[ Test ]
312
+ [ IgnoreBrowser ( Browser . Edge , "Driver does not properly handle prompt() dialogs." ) ]
303
313
public void PromptShouldUseDefaultValueIfNoKeysSent ( )
304
314
{
305
315
driver . Url = CreatePromptPage ( "This is a default value" ) ;
@@ -327,8 +337,8 @@ public void PromptShouldHaveNullValueIfDismissed()
327
337
}
328
338
329
339
[ Test ]
330
- [ IgnoreBrowser ( Browser . Edge , "Hangs browser" ) ]
331
340
[ IgnoreBrowser ( Browser . Remote ) ]
341
+ [ IgnoreBrowser ( Browser . Edge , "Driver does not properly handle prompt() dialogs." ) ]
332
342
public void HandlesTwoAlertsFromOneInteraction ( )
333
343
{
334
344
driver . Url = EnvironmentManager . Instance . UrlBuilder . CreateInlinePage ( new InlinePage ( )
@@ -372,8 +382,6 @@ public void ShouldHandleAlertOnPageLoad()
372
382
driver . Url = EnvironmentManager . Instance . UrlBuilder . CreateInlinePage ( new InlinePage ( )
373
383
. WithBody ( string . Format ( "<a id='open-page-with-onload-alert' href='{0}'>open new page</a>" , pageWithOnLoad ) ) ) ;
374
384
375
- driver . Url = alertsPage ;
376
-
377
385
driver . FindElement ( By . Id ( "open-page-with-onload-alert" ) ) . Click ( ) ;
378
386
379
387
IAlert alert = WaitFor < IAlert > ( AlertToBePresent , "No alert found" ) ;
@@ -387,6 +395,7 @@ public void ShouldHandleAlertOnPageLoad()
387
395
388
396
[ Test ]
389
397
398
+ [ IgnoreBrowser ( Browser . Edge , "Alert during onload hangs browser when page loaded via direct navigation." ) ]
390
399
public void ShouldHandleAlertOnPageLoadUsingGet ( )
391
400
{
392
401
driver . Url = EnvironmentManager . Instance . UrlBuilder . CreateInlinePage ( new InlinePage ( )
@@ -475,6 +484,7 @@ public void ShouldHandleAlertOnPageUnload()
475
484
[ IgnoreBrowser ( Browser . Firefox , "After version 27, Firefox does not trigger alerts on unload." ) ]
476
485
[ IgnoreBrowser ( Browser . Chrome , "Chrome does not implicitly handle onBeforeUnload alert" ) ]
477
486
[ IgnoreBrowser ( Browser . Safari , "Safari driver does not implicitly (or otherwise) handle onBeforeUnload alerts" ) ]
487
+ [ IgnoreBrowser ( Browser . Edge , "Edge driver does not implicitly (or otherwise) handle onBeforeUnload alerts" ) ]
478
488
public void ShouldImplicitlyHandleAlertOnPageBeforeUnload ( )
479
489
{
480
490
string blank = EnvironmentManager . Instance . UrlBuilder . CreateInlinePage ( new InlinePage ( ) . WithTitle ( "Success" ) ) ;
@@ -583,6 +593,7 @@ public void ShouldHandleAlertOnFormSubmit()
583
593
//------------------------------------------------------------------
584
594
[ Test ]
585
595
[ IgnoreBrowser ( Browser . Safari , "onBeforeUnload dialogs hang Safari" ) ]
596
+ [ IgnoreBrowser ( Browser . Edge , "onBeforeUnload dialogs hang Edge" ) ]
586
597
public void ShouldHandleAlertOnPageBeforeUnload ( )
587
598
{
588
599
driver . Url = EnvironmentManager . Instance . UrlBuilder . WhereIs ( "pageWithOnBeforeUnloadMessage.html" ) ;
0 commit comments