Skip to content

Commit dc9bbf5

Browse files
author
Alexander Rosolko
committed
Temporary disable edge and opera tests because missing on appveyor. Use latest stable phantomjs version. Fix typo
1 parent 8ad99fc commit dc9bbf5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

IntegrationTests/BrowserTests/BrowserTests.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class BrowserData : IEnumerable<object[]>
1717
// new object[] {new EdgeConfig(), DriverType.Edge},
1818
new object[] {new FirefoxConfig(), DriverType.Firefox},
1919
new object[] {new IEConfig(), DriverType.IE},
20-
new object[] {new OperaConfig(), DriverType.Opera},
20+
// new object[] {new OperaConfig(), DriverType.Opera},
2121
new object[] {new PhantomConfig(), DriverType.Phantom}
2222
};
2323

@@ -39,7 +39,14 @@ public class BrowserTests : IDisposable
3939
[Theory, ClassData(typeof(BrowserData))]
4040
protected void BrowserTest(IDriverConfig driverConfig, DriverType driverType)
4141
{
42-
new DriverManager().SetUpDriver(driverConfig);
42+
if (driverType == DriverType.Phantom)
43+
{
44+
new DriverManager().SetUpDriver(driverConfig, "2.1.1");
45+
}
46+
else
47+
{
48+
new DriverManager().SetUpDriver(driverConfig);
49+
}
4350
_webDriver = new DriverCreator().Create(driverType);
4451
_webDriver.Navigate().GoToUrl("https://www.google.com/ncr");
4552
Assert.True(_webDriver.Title.Contains("Google"));

0 commit comments

Comments
 (0)