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

Remote OperaGX not closing when using driver.quit() #90

Open
david-jng opened this issue May 30, 2021 · 0 comments
Open

Remote OperaGX not closing when using driver.quit() #90

david-jng opened this issue May 30, 2021 · 0 comments

Comments

@david-jng
Copy link

I start OperaGX using the following cmd-call:
"C:\Users\myUser\AppData\Local\Programs\Opera GX\75.0.3969.279\opera.exe" --remote-debugging-port=1000

Afterwards I open 127.0.0.1:1000/json/version and copy the websocket URL. This will be used as debugger address below.

from selenium import webdriver
from selenium.webdriver.opera.options import Options

options= Options()
options.add_experimental_option("debuggerAddress", "127.0.0.1:1000/devtools/browser/c75d3f58-92ec-4c92-bb58-31b59e7e4021")
options.binary_location = "C:/Users/myUser/AppData/Local/Programs/Opera GX/75.0.3969.279/opera.exe"
driver = webdriver.Opera(executable_path="C:/Users/myUser/Downloads/operadriver.exe", options=options)
driver.get("https://www.google.com")

driver.close()
driver.quit()

With this example I am able to connect to OperaGX, but it doesn't closed.

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

1 participant