How to Configure Browser Type#
Basic Usage#
If you want to use different types of browsers – for example, Firefox, Edge, Chrome, etc. – define this in the BrowserSettings
class:
Python | |
---|---|
1 2 3 4 5 6 7 |
|
Supported Browsers#
Name | Type | Notes |
---|---|---|
Chrome | BrowserType.CHROME | Default (except on Windows) |
Edge | BrowserType.EDGE | Default on Windows |
Firefox | BrowserType.FIREFOX | |
Internet Explorer | BrowserType.INTERNET_EXPLORER | |
Safari | BrowserType.SAFARI |
More information about installation of browser drivers.
Custom Browser Executable
If the browser executable isn't in a default folder, choose which file to use by setting the path_to_executable
option in the BrowserSettings
class.
Python | |
---|---|
1 2 3 4 5 6 7 8 9 |
|
How to Run Multiple Browsers#
When you have multiple browser drivers installed, you can run them in sequence like this:
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|