Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get This Error driver = webdriver.Remote(webdriver_service.service_url, webdriver.DesiredCapabilities.OPERA) AttributeError: type object 'DesiredCapabilities' has no attribute 'OPERA' #103

Open
ALEXDINO7 opened this issue Sep 19, 2022 · 1 comment

Comments

@ALEXDINO7
Copy link

Os => kali linux

Used Code

import time

from selenium import webdriver
from selenium.webdriver.chrome import service

webdriver_service = service.Service('path/to/operadriver')
webdriver_service.start()

driver = webdriver.Remote(webdriver_service.service_url, webdriver.DesiredCapabilities.OPERA)

driver.get('https://www.google.com/')
input_txt = driver.find_element_by_name('q')
input_txt.send_keys('operadriver\n')

time.sleep(5) #see the result
driver.quit()

@piomar123
Copy link

piomar123 commented Jan 31, 2023

I have the same issue with selenium==4.8.0
OS Windows 10
Python 3.10.0 64 bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants