File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
IntegrationTests/BrowserTests Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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" ) ) ;
You can’t perform that action at this time.
0 commit comments