Selenium C# | WebDriverManager.Net | Manage WebDriver binaries for your framework

Published: 08 February 2021
on channel: Maximum Automation
5,161
62

In this video , we are gonna discuss about webdriver manager for dotnet.
In selenium webdriver we have to manually download the chromedriver, geckodriver.. and other browser's driver binary file, which allows WebDriver to perform the operations on browsers.

This is quite painful, because each time we have to download the new drivers manually when a new versions of the browsers are released.

Now WebDriverManager can manage the webdriver binaries for us.

Download Webdrivermanager.Net package in the project. Then call below code before driver object initialization, based on the browser.
new DriverManager().SetUpDriver(new ChromeConfig());
webDriver = new ChromeDriver();

new DriverManager().SetUpDriver(new InternetExplorerConfig());
webDriver = new InternetExplorerDriver();

new DriverManager().SetUpDriver(new FirefoxConfig());
webDriver = new FirefoxDriver();

so above line of code will checks the latest version of the WebDriver binary file and then downloads it if not already present in the system.


**********Please comment in case of any query.**************

Also, please see other videos as well.
Create Nuget package with visual studio :    • Create NuGet packages with Visual Stu...  

How to setup selenium grid in docker :    • How to setup Selenium Grid in Docker ...  

Selenium C# | Run scenario using tags :    • Selenium C# | How to run scenarios ba...  

Selenium with C# - Klov Report :    • Selenium with C# | Klov Report Server  

Selenium with C# - Extent Report :    • Selenium with C# | Extent Report  

Selenium with C# - Create Project to automate test (Selenium + Specflow ) :    • Video  

Selenium with C# - Parallel Execution and Screenshot :    • Video  

Selenium with C# - All about feature files :    • Video  

Serilog - Logging in Automation Framework :    • Serilog | Logging in Automation Frame...  

Selenium with C# - Specflow - External Bindings :    • Selenium C# | Specflow | External Bin...  

Selenium - Working with Excel - Part 1 :    • Video  

Selenium with Java - Cucumber Html Report :    • Selenium with Java | Cucumber Html Re...  

Object Repository | YAML file | Selenium JAVA | BDD Framework -    • Object Repository | How to maintain O...  


Watch video Selenium C# | WebDriverManager.Net | Manage WebDriver binaries for your framework online without registration, duration hours minute second in high quality. This video was added by user Maximum Automation 08 February 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,161 once and liked it 62 people.