This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import selenium.webdriver.chrome.service as service | |
import subprocess | |
from selenium.webdriver.remote.webdriver import WebDriver | |
# Port 55000 is just an example, choose any suitable value here | |
debugging_port = 55000 | |
subprocess.Popen(['Path_to_opera_binary', '--remote-debugging-port={}'.format(debugging_port)]) | |
service = service.Service('Path_to_operadriver_binary') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium.webdriver.remote.webdriver import WebDriver | |
import selenium.webdriver.chrome.service as service | |
service = service.Service('Path_to_operadriver') | |
service.start() | |
WebDriver(service.service_url, {'operaOptions': {'binary':'Path_to_Opera_binary'}}) |