This pull request implements the capability to run tests using either Firefox or Chrome WebDriver, enhancing the flexibility and adaptability of our testing environment. This update follows the addition of an environment variable BROWSER, which lets the user specify the browser for running tests. The default setting remains Firefox, ensuring backward compatibility.
Changes
CONTRIBUTING.md: Updated the document to include instructions on downloading ChromeDriver and configuring the BROWSER environment variable.
auth_helpers.py: Extended to support the initialization of both Firefox and Chrome WebDrivers based on the BROWSER environment variable. A new function get_driver has been created to encapsulate the browser initialization logic, replacing direct calls to Firefox WebDriver with a more flexible function that supports both browsers.
Overview
This pull request implements the capability to run tests using either Firefox or Chrome WebDriver, enhancing the flexibility and adaptability of our testing environment. This update follows the addition of an environment variable
BROWSER
, which lets the user specify the browser for running tests. The default setting remains Firefox, ensuring backward compatibility.Changes
BROWSER
environment variable.BROWSER
environment variable. A new functionget_driver
has been created to encapsulate the browser initialization logic, replacing direct calls to Firefox WebDriver with a more flexible function that supports both browsers.