You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.TypeLoadException: Could not load type 'OpenQA.Selenium.PhantomJS.PhantomJSDriver' from assembly 'WebDriver, Version=3.14.0.0, Culture=neutral, PublicKeyToken=null'.
#189
I'm getting the following exception on the commented line:
System.TypeLoadException: Could not load type 'OpenQA.Selenium.PhantomJS.PhantomJSDriver' from assembly 'WebDriver, Version=3.14.0.0, Culture=neutral, PublicKeyToken=null'.
Why is it trying to load PhantomJS if I've explicitly told it to use Firefox?
The text was updated successfully, but these errors were encountered:
SessionConfigurationsessionConfiguration=new SessionConfiguration
{AppHost="localhost",Port=this.Port,SSL=false,Timeout= TimeSpan.FromSeconds(2),RetryInterval= TimeSpan.FromSeconds(0.1),WaitBeforeClick= TimeSpan.FromMilliseconds(0.2)};
sessionConfiguration.Driver =typeof(SeleniumWebDriver);
sessionConfiguration.Browser = Coypu.Drivers.Browser.InternetExplorer;varbrowser=new BrowserSession(sessionConfiguration);// throws the exception on this line
Seems like it is the issue with Selenium.WebDriver or Selenium.Support with version "3.14.0"
I downgraded both the packages to version "3.13.1" and it worked.
@eparizzi coypu v2.14 doesn't support selenium webdriver v3.14.0 - they remove it PhantomJS in that version.
Also coypu v2.14 is compiled against selenium webdriver 3.3.0 so thats why you get these weird behaviour (coypu selenium v3.3.0 vs project selenium v3.14.0).
There will be soon a new release of coypu supporting fully selenium webdriver v3.14
I've created a fresh new solution with only one MSTest project targetting .NET Framework 4.5.2.
Added the following packages:
And a simple test method:
I'm getting the following exception on the commented line:
Why is it trying to load PhantomJS if I've explicitly told it to use Firefox?
The text was updated successfully, but these errors were encountered: