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

Opera 87+: Webdriver connection fails due to wrong "Browser" data in /json/version #99

Open
pbi-qfs opened this issue May 16, 2022 · 0 comments

Comments

@pbi-qfs
Copy link

pbi-qfs commented May 16, 2022

Upon start, the operadriver/chromedriver checks the devtools endpoint /json/version to get the current browser version.

From Opera 87 on, this field has the constant value "1.0.0", instead of "Chrome/101.0.4951.54", an the driver start crashes due to "Version 1.0.0 not supported (due to this check).

Until Opera 86, the version is correct:

{
   "Browser": "Chrome/100.0.4896.127",
   "Protocol-Version": "1.3",
   "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 OPR/86.0.4363.59",
   ...   }

From version 87 on, the value is wrong:

{
  "Browser": "1.0.0",
  "Protocol-Version": "1.3",
  "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36 OPR/87.0.4390.21 (Edition beta)",   
  ... 
}

This effectively prohibits any Opera testing using the Webdriver protocol (including Selenium 3 and 4).

(The CEF team had a similar issue 4 years ago)

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