SpecFlowOSS / SpecFlow.VS

The next version of the Visual Studio extension for SpecFlow
MIT License
36 stars 10 forks source link

System.TypeLoadException : Could not load type 'OpenQA.Selenium.PhantomJS.PhantomJSOptions' from assembly 'WebDriver, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null'. #143

Closed wahidhaabduljabbar07 closed 9 months ago

wahidhaabduljabbar07 commented 9 months ago

Used Visual Studio

Visual Studio 2022

Are the latest Visual Studio updates installed?

Yes

SpecFlow Section in app.config or content of specflow.json

No response

Issue Description

Build Success, Scripts are loading, but when trying to run the scripts, getting this error.

----> System.TypeLoadException : Could not load type 'OpenQA.Selenium.PhantomJS.PhantomJSOptions' from assembly 'WebDriver, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null'.

Visual Studio 2022

targetFramework="net462 Nunit 3.13.3 NUnit3TestAdapter - 4.5.0 PhantomJS - 2.1.1 Selenium.Support & Selenium.WebDriver - 3.8

Steps to Reproduce

Build Success and scripts are loading

Link to Repository Project

No response

wahidhaabduljabbar07 commented 9 months ago

Fixed after updating Selenium Webdriver and Selenium Support to 3.8 in other dependent projects.