-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Add an option to specify the Chromium browser binary used
(For the browser executable, NOT the driver)
Supports the two main Chromium browsers: Chrome and Edge.
Example:
pytest test_demo_site.py --binary-location="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"Also as an option for other Syntax Formats:
from seleniumbase import Driver
from seleniumbase import js_utils
from seleniumbase import page_actions
driver = Driver(browser="chrome", binary_location="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome")
try:
driver.get("https://seleniumbase.io/apps/calculator")
page_actions.wait_for_element(driver, "4", by="id").click()
page_actions.wait_for_element(driver, "2", by="id").click()
page_actions.wait_for_text(driver, "42", "output", by="id")
js_utils.highlight_with_js(driver, "#output", loops=6)
finally:
driver.quit()