S
S
Sanchoys2282020-08-07 15:43:36
Opera
Sanchoys228, 2020-08-07 15:43:36

selenium. Is an error returned when connecting operadriver?

from selenium import webdriver

driver = webdriver.Opera('C:/operadriver_win64/operadriver.exe')
driver.get("http://www.opera.com")


Error code:
selenium.common.exceptions.WebDriverException: Message: 'operadriver' executable needs to be in PATH.


Tried like this:
driver = webdriver.Chrome('C:/operadriver_win64/operadriver.exe')

Mistake:
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Opera binary

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alex1478, 2020-08-07
@alex1478

The path to the driver is specified in the parameterexecutable_path

F
FlensT, 2020-08-07
@FlensT

Put the driver in the project folder and delete the path to it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question