Skip to content

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

@ALEXDINO7

Description

@ALEXDINO7

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions