Posts

Showing posts with the label webdriver

Selenium Webdriver Manager

Image
The simple way to connect the Webdriver is like that: 1 from selenium import webdriver 2 3 driver = webdriver.Chrome(<path_of_driver>) Const: We need to put all paths and their relative path. If the webdriver or the browser version change/update, we need to manually download him and replace it with the old one. A better way is to put the driver in venv folder, in that way the webdriver is available in all projects without writing the relative path. so... what is the easiest way to figure it out ? Meet webdriver manager, an alternative way to work with webdriver, It pulls the latest version from the central repository automatically. you just need to do two simple steps: Webdriver Manager The main idea of  webdriver_manager i s to simplify the management of binary drivers for different browsers. Instead of: Downloading binary chrome driver. Unzip it somewhere on your PC. Set path to this driver. Every time when there is a new version of the browser, we should repeat all tho...