You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after selenium 4.6.0,it removed the executable_path in its parameter configuration.
If you want to pass in an executable_path, you'll have to use the service arg now.
//////////////
from selenium import webdriver
from selenium.webdriver.firefox.service import Service
service = Service(executable_path="PATH_TO_GECKODRIVER")
options = webdriver.FirefoxOptions()
driver = webdriver.Firefox(service=service, options=options)
driver.quit()
//////////////
But you no longer need to specify an executable_path due to a fully operational Selenium Manager in 4.10.0, so this is all you need:
//////////////
from selenium import webdriver
from selenium.webdriver.firefox.service import Service
service = Service()
options = webdriver.FirefoxOptions()
driver = webdriver.Firefox(service=service, options=options)
driver.quit()
//////////////
or
//////////////
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
after selenium 4.6.0,it removed the executable_path in its parameter configuration.
If you want to pass in an executable_path, you'll have to use the service arg now.
//////////////
from selenium import webdriver
from selenium.webdriver.firefox.service import Service
service = Service(executable_path="PATH_TO_GECKODRIVER")
options = webdriver.FirefoxOptions()
driver = webdriver.Firefox(service=service, options=options)
driver.quit()
//////////////
But you no longer need to specify an executable_path due to a fully operational Selenium Manager in 4.10.0, so this is all you need:
//////////////
from selenium import webdriver
from selenium.webdriver.firefox.service import Service
service = Service()
options = webdriver.FirefoxOptions()
driver = webdriver.Firefox(service=service, options=options)
driver.quit()
//////////////
or
//////////////
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()), options=options)
//////////////
The text was updated successfully, but these errors were encountered: