How to configure and launch Opera capabilities on Selenoid

174 Views Asked by At

Maybe somebody run into that problem. I try to launch test in Opera browser on Selenoid (https://aerokube.com/selenoid), but any time with many different version of docker image I got something error like this:

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Missing or invalid capabilities(Driver info: operadriver=113.0.5672.127 (8da0c060b24fe8c84cb753bd0659e49fc290d3e8-refs/branch-heads/5672@{#1203}),platform=Linux 5.4.0-109-generic x86_64)

For Opera options I use ChromeOptions()

from selenium.webdriver import ChromeOptions

selenoid_options = {"version": config["ver"],
                    "browserName": config["browser"],
                    "enableVNC": True,
                    "enableVideo": False
                    }

options.set_capability('selenoid:options', selenoid_options)
return webdriver.Remote(command_executor=f'http://{selenoid_host}:4444/wd/hub', options=options)```

Before it Ive got image for opera - selenoid/opera:99.0
There are in the output ```docker images``` on my Selenoid host.
Also I have in browser.json next item:

    "opera": {
        "default": "99.0",
        "versions": {
            "99.0": {
                "image": "selenoid/vnc_opera:99.0",
                "port": "4444",
                "path": "/"
            }

And Ive changed it for many versions and download again different docker images for it, but has no success.

Any ideas?
1

There are 1 best solutions below

2
vania-pooh On

Should be something like this:

"browserName": "opera",
"browserVersion": "99.0",
"selenoid:options": {
  "enableVNC": True,
  "enableVideo": False
}