Referencing Firefox driver for Selenium 3.0 and above
After Selenium 2.53.0, the future developments shifted 3.0 versions
"The Mozilla-provided Marionette-based FirefoxDriver is now the default implementation for automating Firefox. Additionally, this aligns the FirefoxDriver class with other browser-specific implementations, using a FirefoxOptions class for setting options for the browser session. Constructors of FirefoxDriver directly referencing FirefoxProfile or FirefoxBinary have been marked as deprecated, and will be removed in a future release."
What this meant was, updating/adding references in your framework to automate on firefox. Earlier we didn't need any reference to a driver but now we need to reference. This article will focus on C# binding using NuGet Package Manager
Here are the steps:
1) In a new project Click on references > Manage NuGet Packages
2) Search for Selenium.Firefox and select the result. Install
3) The packages.config will look like
4) Referencing in the code
That's it !!
"The Mozilla-provided Marionette-based FirefoxDriver is now the default implementation for automating Firefox. Additionally, this aligns the FirefoxDriver class with other browser-specific implementations, using a FirefoxOptions class for setting options for the browser session. Constructors of FirefoxDriver directly referencing FirefoxProfile or FirefoxBinary have been marked as deprecated, and will be removed in a future release."
What this meant was, updating/adding references in your framework to automate on firefox. Earlier we didn't need any reference to a driver but now we need to reference. This article will focus on C# binding using NuGet Package Manager
Here are the steps:
1) In a new project Click on references > Manage NuGet Packages
2) Search for Selenium.Firefox and select the result. Install
3) The packages.config will look like
4) Referencing in the code
That's it !!
Comments
Post a Comment