Skip to content

Commit

Permalink
Add missing test case for edgedriver
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Jun 17, 2024
1 parent 85aa8eb commit 552c627
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/tests_webdriver_local/test_local_driver_not_found.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@


def test_webdriver_local_driver_not_found(browser_name):
"""When chromedriver/geckodriver are not present on the system."""
"""When chromedriver/geckodriver/edgedriver are not present on the system."""
from splinter import Browser

from selenium.webdriver.chrome.service import Service as ChromeService
from selenium.webdriver.firefox.service import Service as FirefoxService

if browser_name == "chrome":
from selenium.webdriver.chrome.service import Service as ChromeService

service = ChromeService(executable_path="failpath")
else:
elif browser_name == "firefox":
from selenium.webdriver.firefox.service import Service as FirefoxService

service = FirefoxService(executable_path="failpath")
elif browser_name == "edge":
from selenium.webdriver.edge.service import Service as EdgeService

service = EdgeService(executable_path="failpath")

with pytest.raises(WebDriverException):
Browser(browser_name, service=service)

0 comments on commit 552c627

Please sign in to comment.