Skip to content

Commit 695f83a

Browse files
committed
[dotnet] remove references to deprecated EdgeLegacy and Opera tests
1 parent ef9f989 commit 695f83a

37 files changed

Lines changed: 10 additions & 223 deletions

dotnet/WebDriver.NET.sln

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebDriver.Chrome.Tests", "t
1515
EndProject
1616
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebDriver.Edge.Tests", "test\edge\WebDriver.Edge.Tests.csproj", "{EF99FB04-94C3-4AA0-8809-B514B253DF51}"
1717
EndProject
18-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebDriver.Opera.Tests", "test\opera\WebDriver.Opera.Tests.csproj", "{C6CD9D25-75D2-4C7A-966A-EA2D26091DD1}"
19-
EndProject
2018
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebDriver.IE.Tests", "test\ie\WebDriver.IE.Tests.csproj", "{E54A6F7B-3939-4DE5-85CC-28158615A967}"
2119
EndProject
2220
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebDriver.Firefox.Tests", "test\firefox\WebDriver.Firefox.Tests.csproj", "{F912F647-04A0-4081-91B4-985EE0E9097C}"
@@ -59,10 +57,6 @@ Global
5957
{EF99FB04-94C3-4AA0-8809-B514B253DF51}.Debug|Any CPU.Build.0 = Debug|Any CPU
6058
{EF99FB04-94C3-4AA0-8809-B514B253DF51}.Release|Any CPU.ActiveCfg = Release|Any CPU
6159
{EF99FB04-94C3-4AA0-8809-B514B253DF51}.Release|Any CPU.Build.0 = Release|Any CPU
62-
{C6CD9D25-75D2-4C7A-966A-EA2D26091DD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63-
{C6CD9D25-75D2-4C7A-966A-EA2D26091DD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
64-
{C6CD9D25-75D2-4C7A-966A-EA2D26091DD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
65-
{C6CD9D25-75D2-4C7A-966A-EA2D26091DD1}.Release|Any CPU.Build.0 = Release|Any CPU
6660
{E54A6F7B-3939-4DE5-85CC-28158615A967}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6761
{E54A6F7B-3939-4DE5-85CC-28158615A967}.Debug|Any CPU.Build.0 = Debug|Any CPU
6862
{E54A6F7B-3939-4DE5-85CC-28158615A967}.Release|Any CPU.ActiveCfg = Release|Any CPU

dotnet/test/common/AlertsTest.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ public void ShouldNotHandleAlertInAnotherWindow()
450450
[IgnoreBrowser(Browser.Firefox, "After version 27, Firefox does not trigger alerts on unload.")]
451451
[IgnoreBrowser(Browser.Chrome, "Chrome does not trigger alerts on unload.")]
452452
[IgnoreBrowser(Browser.Edge, "Edge does not trigger alerts on unload.")]
453-
[IgnoreBrowser(Browser.EdgeLegacy, "Edge does not trigger alerts on unload.")]
454453
[IgnoreBrowser(Browser.Safari, "Safari does not trigger alerts on unload.")]
455454
public void ShouldHandleAlertOnPageUnload()
456455
{
@@ -476,7 +475,6 @@ public void ShouldHandleAlertOnPageUnload()
476475
[Test]
477476
[IgnoreBrowser(Browser.Chrome, "Chrome does not implicitly handle onBeforeUnload alert")]
478477
[IgnoreBrowser(Browser.Edge, "Edge does not implicitly handle onBeforeUnload alert")]
479-
[IgnoreBrowser(Browser.EdgeLegacy, "Edge driver does not implicitly (or otherwise) handle onBeforeUnload alerts")]
480478
public void ShouldImplicitlyHandleAlertOnPageBeforeUnload()
481479
{
482480
string blank = EnvironmentManager.Instance.UrlBuilder.CreateInlinePage(new InlinePage().WithTitle("Success"));
@@ -496,7 +494,6 @@ public void ShouldImplicitlyHandleAlertOnPageBeforeUnload()
496494
[IgnoreBrowser(Browser.Chrome, "Test as written does not trigger alert")]
497495
[IgnoreBrowser(Browser.Edge, "Test as written does not trigger alert")]
498496
[IgnoreBrowser(Browser.Firefox, "After version 27, Firefox does not trigger alerts on unload.")]
499-
[IgnoreBrowser(Browser.EdgeLegacy, "Edge does not trigger alerts on unload.")]
500497
[IgnoreBrowser(Browser.Safari, "Safari does not trigger alerts on unload.")]
501498
public void ShouldHandleAlertOnWindowClose()
502499
{
@@ -530,9 +527,7 @@ public void ShouldHandleAlertOnWindowClose()
530527
}
531528

532529
[Test]
533-
[IgnoreBrowser(Browser.EdgeLegacy, "Driver chooses not to return text from unhandled alert")]
534530
[IgnoreBrowser(Browser.Firefox, "Driver chooses not to return text from unhandled alert")]
535-
[IgnoreBrowser(Browser.Opera)]
536531
public void IncludesAlertTextInUnhandledAlertException()
537532
{
538533
driver.Url = CreateAlertPage("cheese");
@@ -552,7 +547,6 @@ public void IncludesAlertTextInUnhandledAlertException()
552547

553548
[Test]
554549
[NeedsFreshDriver(IsCreatedAfterTest = true)]
555-
[IgnoreBrowser(Browser.Opera)]
556550
public void CanQuitWhenAnAlertIsPresent()
557551
{
558552
driver.Url = CreateAlertPage("cheese");
@@ -621,10 +615,8 @@ public void ShouldHandleAlertOnPageBeforeUnloadAlertAtQuit()
621615
// [Test]
622616
[IgnoreBrowser(Browser.Chrome)]
623617
[IgnoreBrowser(Browser.Edge)]
624-
[IgnoreBrowser(Browser.EdgeLegacy)]
625618
[IgnoreBrowser(Browser.Firefox)]
626619
[IgnoreBrowser(Browser.IE)]
627-
[IgnoreBrowser(Browser.Opera)]
628620
[IgnoreBrowser(Browser.Remote)]
629621
[IgnoreBrowser(Browser.Safari)]
630622
public void ShouldBeAbleToHandleAuthenticationDialog()
@@ -640,10 +632,8 @@ public void ShouldBeAbleToHandleAuthenticationDialog()
640632
// [Test]
641633
[IgnoreBrowser(Browser.Chrome)]
642634
[IgnoreBrowser(Browser.Edge)]
643-
[IgnoreBrowser(Browser.EdgeLegacy)]
644635
[IgnoreBrowser(Browser.Firefox)]
645636
[IgnoreBrowser(Browser.IE)]
646-
[IgnoreBrowser(Browser.Opera)]
647637
[IgnoreBrowser(Browser.Remote)]
648638
[IgnoreBrowser(Browser.Safari)]
649639
public void ShouldBeAbleToDismissAuthenticationDialog()
@@ -657,9 +647,7 @@ public void ShouldBeAbleToDismissAuthenticationDialog()
657647
// [Test]
658648
[IgnoreBrowser(Browser.Chrome)]
659649
[IgnoreBrowser(Browser.Edge)]
660-
[IgnoreBrowser(Browser.EdgeLegacy)]
661650
[IgnoreBrowser(Browser.Firefox)]
662-
[IgnoreBrowser(Browser.Opera)]
663651
[IgnoreBrowser(Browser.Remote)]
664652
[IgnoreBrowser(Browser.Safari)]
665653
public void ShouldThrowAuthenticatingOnStandardAlert()

dotnet/test/common/AvailableLogsTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace OpenQA.Selenium
88
{
99
[TestFixture]
10-
[IgnoreBrowser(Browser.EdgeLegacy, "Edge driver does not support logs API")]
1110
[IgnoreBrowser(Browser.Firefox, "Firefox driver (when using Marionette/Geckodriver) does not support logs API")]
1211
[IgnoreBrowser(Browser.IE, "IE driver does not support logs API")]
1312
[IgnoreBrowser(Browser.Safari, "Edge driver does not support logs API")]

dotnet/test/common/ClearTest.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public void TextInputShouldNotClearWhenDisabled()
2525
}
2626

2727
[Test]
28-
[IgnoreBrowser(Browser.Opera, "Untested feature")]
2928
public void TextInputShouldNotClearWhenReadOnly()
3029
{
3130
driver.Url = readOnlyPage;
@@ -51,7 +50,6 @@ public void TextAreaShouldNotClearWhenDisabled()
5150
}
5251

5352
[Test]
54-
[IgnoreBrowser(Browser.Opera, "Untested feature")]
5553
public void TextAreaShouldNotClearWhenReadOnly()
5654
{
5755
driver.Url = readOnlyPage;
@@ -117,7 +115,6 @@ public void ShouldBeAbleToClearUrlInput()
117115
}
118116

119117
[Test]
120-
[IgnoreBrowser(Browser.EdgeLegacy, "Driver sees range input as not editable")]
121118
public void ShouldBeAbleToClearRangeInput()
122119
{
123120
ShouldBeAbleToClearInput(By.Name("range_input"), "42", "50");
@@ -126,7 +123,6 @@ public void ShouldBeAbleToClearRangeInput()
126123
[Test]
127124
[IgnoreBrowser(Browser.Chrome, "Driver sees checkbox as not editable")]
128125
[IgnoreBrowser(Browser.Edge, "Driver sees checkbox as not editable")]
129-
[IgnoreBrowser(Browser.EdgeLegacy, "Driver sees checkbox as not editable")]
130126
[IgnoreBrowser(Browser.Firefox, "Driver sees checkbox as not editable")]
131127
[IgnoreBrowser(Browser.IE, "Driver sees checkbox as not editable")]
132128
[IgnoreBrowser(Browser.Safari, "Driver sees checkbox as not editable")]
@@ -136,7 +132,6 @@ public void ShouldBeAbleToClearCheckboxInput()
136132
}
137133

138134
[Test]
139-
[IgnoreBrowser(Browser.EdgeLegacy, "Driver sees color input as not editable")]
140135
[IgnoreBrowser(Browser.IE, "Driver does not support clearing color elements")]
141136
public void ShouldBeAbleToClearColorInput()
142137
{

dotnet/test/common/ClickScrollingTest.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void ClickingOnAnchorScrollsPage()
2626
long yOffset = (long)((IJavaScriptExecutor)driver).ExecuteScript(scrollScript);
2727

2828
//Focusing on to click, but not actually following,
29-
//the link will scroll it in to view, which is a few pixels further than 0
29+
//the link will scroll it in to view, which is a few pixels further than 0
3030
Assert.That(yOffset, Is.GreaterThan(300), "Did not scroll");
3131
}
3232

@@ -78,7 +78,6 @@ public void ShouldBeAbleToClickOnAnElementPartiallyHiddenByOverflow()
7878
}
7979

8080
[Test]
81-
[IgnoreBrowser(Browser.Opera)]
8281
public void ShouldNotScrollOverflowElementsWhichAreVisible()
8382
{
8483
driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIs("scroll2.html");
@@ -118,7 +117,6 @@ public void ShouldScrollOverflowElementsIfClickPointIsOutOfViewButElementIsInVie
118117
}
119118

120119
[Test]
121-
[IgnoreBrowser(Browser.Opera, "Opera fails.")]
122120
public void ShouldBeAbleToClickElementInAFrameThatIsOutOfView()
123121
{
124122
try
@@ -136,7 +134,6 @@ public void ShouldBeAbleToClickElementInAFrameThatIsOutOfView()
136134
}
137135

138136
[Test]
139-
[IgnoreBrowser(Browser.Opera, "Opera fails.")]
140137
public void ShouldBeAbleToClickElementThatIsOutOfViewInAFrame()
141138
{
142139
try
@@ -171,7 +168,6 @@ public void ShouldNotBeAbleToClickElementThatIsOutOfViewInANonScrollableFrame()
171168
}
172169

173170
[Test]
174-
[IgnoreBrowser(Browser.Opera, "Opera fails.")]
175171
public void ShouldBeAbleToClickElementThatIsOutOfViewInAFrameThatIsOutOfView()
176172
{
177173
try
@@ -189,7 +185,6 @@ public void ShouldBeAbleToClickElementThatIsOutOfViewInAFrameThatIsOutOfView()
189185
}
190186

191187
[Test]
192-
[IgnoreBrowser(Browser.Opera, "Opera fails.")]
193188
public void ShouldBeAbleToClickElementThatIsOutOfViewInANestedFrame()
194189
{
195190
try
@@ -208,7 +203,6 @@ public void ShouldBeAbleToClickElementThatIsOutOfViewInANestedFrame()
208203
}
209204

210205
[Test]
211-
[IgnoreBrowser(Browser.Opera, "Opera fails.")]
212206
public void ShouldBeAbleToClickElementThatIsOutOfViewInANestedFrameThatIsOutOfView()
213207
{
214208
try

dotnet/test/common/ClickTest.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public void CanClickOnALinkAndFollowIt()
2828
}
2929

3030
[Test]
31-
[IgnoreBrowser(Browser.Opera, "Not tested")]
3231
public void CanClickOnALinkThatOverflowsAndFollowIt()
3332
{
3433
driver.FindElement(By.Id("overflowLink")).Click();
@@ -88,7 +87,7 @@ public void JsLocatedElementsCanUpdateFramesIfFoundSomehowElse()
8887
}
8988

9089
[Test]
91-
90+
9291
public void CanClickOnAnElementWithTopSetToANegativeNumber()
9392
{
9493
driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIs("styledPage.html");
@@ -101,7 +100,6 @@ public void CanClickOnAnElementWithTopSetToANegativeNumber()
101100
}
102101

103102
[Test]
104-
[IgnoreBrowser(Browser.Opera)]
105103
public void ShouldSetRelatedTargetForMouseOver()
106104
{
107105
driver.Url = javascriptPage;
@@ -133,7 +131,6 @@ public void ShouldClickOnFirstBoundingClientRectWithNonZeroSize()
133131

134132
[Test]
135133
[NeedsFreshDriver(IsCreatedAfterTest = true)]
136-
[IgnoreBrowser(Browser.Opera, "Doesn't support multiple windows")]
137134
public void ShouldOnlyFollowHrefOnce()
138135
{
139136
driver.Url = clicksPage;
@@ -221,7 +218,6 @@ public void ClicksASurroundingStrongTag()
221218
}
222219

223220
[Test]
224-
[IgnoreBrowser(Browser.Opera, "Map click fails")]
225221
public void CanClickAnImageMapArea()
226222
{
227223
driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIs("click_tests/google_map.html");
@@ -251,7 +247,6 @@ public void ShouldBeAbleToClickOnAnElementGreaterThanTwoViewports()
251247
}
252248

253249
[Test]
254-
[IgnoreBrowser(Browser.Opera, "Not Tested")]
255250
public void ShouldBeAbleToClickOnAnElementInFrameGreaterThanTwoViewports()
256251
{
257252
string url = EnvironmentManager.Instance.UrlBuilder.WhereIs("click_too_big_in_frame.html");
@@ -340,7 +335,6 @@ public void ShouldBeAbleToClickOnASpanThatWrapsToTheNextLine()
340335
[IgnoreBrowser(Browser.IE, "Element is properly seen as obscured.")]
341336
[IgnoreBrowser(Browser.Chrome, "Element is properly seen as obscured.")]
342337
[IgnoreBrowser(Browser.Edge, "Element is properly seen as obscured.")]
343-
[IgnoreBrowser(Browser.EdgeLegacy, "Element is properly seen as obscured.")]
344338
[IgnoreBrowser(Browser.Firefox, "Element is properly seen as obscured.")]
345339
[IgnoreBrowser(Browser.Safari, "Element is properly seen as obscured.")]
346340
public void ShouldBeAbleToClickOnAPartiallyOverlappedLinkThatWrapsToTheNextLine()

dotnet/test/common/CookieImplementationTest.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ public void GetCookiesInAFrame()
196196
}
197197

198198
[Test]
199-
[IgnoreBrowser(Browser.Opera)]
200199
public void CannotGetCookiesWithPathDifferingOnlyInCase()
201200
{
202201
if (!CheckIsOnValidHostNameForCookieTests())
@@ -405,7 +404,6 @@ public void ShouldIgnoreThePortNumberOfTheHostWhenSettingTheCookie()
405404
}
406405

407406
[Test]
408-
[IgnoreBrowser(Browser.Opera)]
409407
public void CookieEqualityAfterSetAndGet()
410408
{
411409
if (!CheckIsOnValidHostNameForCookieTests())
@@ -440,7 +438,6 @@ public void CookieEqualityAfterSetAndGet()
440438
}
441439

442440
[Test]
443-
[IgnoreBrowser(Browser.Opera)]
444441
public void ShouldRetainCookieExpiry()
445442
{
446443
if (!CheckIsOnValidHostNameForCookieTests())
@@ -469,7 +466,6 @@ public void ShouldRetainCookieExpiry()
469466

470467
[Test]
471468
[IgnoreBrowser(Browser.IE, "Browser does not handle untrusted SSL certificates.")]
472-
[IgnoreBrowser(Browser.EdgeLegacy, "Browser does not handle untrusted SSL certificates.")]
473469
public void CanHandleSecureCookie()
474470
{
475471
driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIsSecure("animals");
@@ -485,7 +481,6 @@ public void CanHandleSecureCookie()
485481

486482
[Test]
487483
[IgnoreBrowser(Browser.IE, "Browser does not handle untrusted SSL certificates.")]
488-
[IgnoreBrowser(Browser.EdgeLegacy, "Browser does not handle untrusted SSL certificates.")]
489484
public void ShouldRetainCookieSecure()
490485
{
491486
driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIsSecure("animals");

dotnet/test/common/CorrectEventFiringTest.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public void ShouldFireFocusEventWhenClicking()
2323

2424
[Test]
2525
[NeedsFreshDriver(IsCreatedBeforeTest = true, IsCreatedAfterTest = true)]
26-
[IgnoreBrowser(Browser.EdgeLegacy, "Edge driver does not support multiple instances")]
2726
[IgnoreBrowser(Browser.Safari, "Safari driver does not support multiple instances")]
2827
public void ShouldFireFocusEventInNonTopmostWindow()
2928
{
@@ -265,7 +264,6 @@ public void SendingKeysToAnotherElementShouldCauseTheBlurEventToFire()
265264
}
266265

267266
[Test]
268-
[IgnoreBrowser(Browser.EdgeLegacy, "Edge driver does not support multiple instances")]
269267
[IgnoreBrowser(Browser.Safari, "Safari driver does not support multiple instances")]
270268
public void SendingKeysToAnotherElementShouldCauseTheBlurEventToFireInNonTopmostWindow()
271269
{
@@ -463,7 +461,6 @@ public void ClickOverlappingElements()
463461
[Test]
464462
[IgnoreBrowser(Browser.Chrome, "Driver checks for overlapping elements")]
465463
[IgnoreBrowser(Browser.Edge, "Driver checks for overlapping elements")]
466-
[IgnoreBrowser(Browser.EdgeLegacy, "Driver checks for overlapping elements")]
467464
[IgnoreBrowser(Browser.Firefox, "Driver checks for overlapping elements")]
468465
[IgnoreBrowser(Browser.IE, "Driver checks for overlapping elements")]
469466
[IgnoreBrowser(Browser.Safari, "Driver checks for overlapping elements")]
@@ -496,7 +493,6 @@ public void ClickPartiallyOverlappingElements()
496493
[Test]
497494
[IgnoreBrowser(Browser.Chrome, "Driver checks for overlapping elements")]
498495
[IgnoreBrowser(Browser.Edge, "Driver checks for overlapping elements")]
499-
[IgnoreBrowser(Browser.EdgeLegacy, "Driver checks for overlapping elements")]
500496
[IgnoreBrowser(Browser.Firefox, "Driver checks for overlapping elements")]
501497
[IgnoreBrowser(Browser.IE, "Driver checks for overlapping elements")]
502498
[IgnoreBrowser(Browser.Safari, "Driver checks for overlapping elements")]

dotnet/test/common/CssValueTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public void GetCssValueShouldReturnStandardizedColour()
3737
}
3838

3939
[Test]
40-
[IgnoreBrowser(Browser.Opera)]
4140
public void ShouldAllowInheritedStylesToBeUsed()
4241
{
4342
driver.Url = javascriptPage;

dotnet/test/common/ElementAttributeTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public void ShouldReturnNullWhenGettingSrcAttributeOfInvalidImgTag()
2828
}
2929

3030
[Test]
31-
[IgnoreBrowser(Browser.Opera)]
3231
public void ShouldReturnAnAbsoluteUrlWhenGettingSrcAttributeOfAValidImgTag()
3332
{
3433
driver.Url = simpleTestPage;
@@ -38,7 +37,6 @@ public void ShouldReturnAnAbsoluteUrlWhenGettingSrcAttributeOfAValidImgTag()
3837
}
3938

4039
[Test]
41-
[IgnoreBrowser(Browser.Opera)]
4240
public void ShouldReturnAnAbsoluteUrlWhenGettingHrefAttributeOfAValidAnchorTag()
4341
{
4442
driver.Url = simpleTestPage;
@@ -351,7 +349,6 @@ public void CanRetrieveTheCurrentValueOfATextFormField_textArea()
351349
}
352350

353351
[Test]
354-
[IgnoreBrowser(Browser.Opera)]
355352
public void ShouldReturnNullForNonPresentBooleanAttributes()
356353
{
357354
driver.Url = booleanAttributes;

0 commit comments

Comments
 (0)