WebDriver Installation and Initialization for Different Browsers
Understand how to install WebDriver executables for different browsers and add them to your system path. Learn how to initialize WebDriver instances for Chrome, Firefox, Edge, Internet Explorer, Opera, and Safari, while addressing platform-specific requirements.
We'll cover the following...
Before beginning #
Most WebDriver implementations require an additional executable for Selenium to communicate with the browser.
We can manually add the executable before starting WebDriver session, but this can make the framework less portable as the executables are platform-dependent and need to be in the same place on every machine or include the executables with the framework.
By adding the driver to the system classpath, selenium will be able to locate the executables without bundling them with the framework.
Downloading & installation of WebDriver #
Download WebDriver #
For downloading driver executables of different browsers:
Chrome: https://sites.google.com/a/chromium.org/chromedriver/downloads
Firefox: htt ...