Skip to content

Commit

Permalink
Fixed Issue Kalebu#142
Browse files Browse the repository at this point in the history
This change is due to Selenium 4.10.0. the first argument is no longer executable_path, but options. (That's why it complains that you're passing it in twice.)

If you want to pass in an executable_path, you'll have to use the service arg now.
  • Loading branch information
Gudibettumane authored Mar 28, 2024
1 parent b7a1d25 commit d439ebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alright/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
NoSuchElementException,
)
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.service import Service

LOGGER = logging.getLogger()

Expand All @@ -37,7 +38,7 @@ def __init__(self, browser=None, time_out=600):

if not browser:
browser = webdriver.Chrome(
ChromeDriverManager().install(),
service=Service(executable_path=ChromeDriverManager().install()),
options=self.chrome_options,
)

Expand Down

0 comments on commit d439ebc

Please sign in to comment.