From the course: Python Automation and Testing
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Cross-browser support
From the course: Python Automation and Testing
Cross-browser support
- [Iinstructor] The Selenium WebDriver supports various browsers including Firefox, Chrome, Internet Explorer, and Safari. This is useful when you want to run a single script on multiple browsers to ensure that your code is compatible with all available browsers. Selenium can also be extended to run on various systems and platforms. Here, since we are checking for web UI automation, we will focus specifically on cross-browser compatibility. In the case of Firefox, the Firefox driver binary needs to be installed separately and then placed in the system path so that web driver can locate it. This can then be accessed using the line, driver = webdriver.Firefox(). Let's quickly go to the Selenium Python documentation see how to install these drivers and then place them in the system path. The drivers for different browsers can be installed from this webpage, seleniumpython.readthedocs.io/installation. Here, we can see the drivers for Chrome, Edge, Firefox and Safari. Once we have…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.