Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am trying the below code. I got this error:

Python 3.11.4


What I have tried:

Python
from selenium import webdriver
from selenium.webdriver.firefox.service import Service
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.options import Options as Firefox_Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support import expected_conditions as EC
import time as t
import pandas as pd
from tqdm import tqdm

firefox_options = Firefox_Options()

driverService = Service('chromedriver/geckodriver')

driverService = Service('chromedriver/geckodriver')
driver = webdriver.Firefox(executable_path='C:\\Users\\any\\Desktop\\PythonPrograms\\DataExtraction\\geckodriver.exe')
Posted
Updated 7-Sep-23 8:09am
v2

The message is clear, the Firefox constructor/method does not accept a parameter named executable_path. Check the selenium documentation to see what values are allowed.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900