operachromiumdriver icon indicating copy to clipboard operation
operachromiumdriver copied to clipboard

desktop.md - are the capabilites string examples not correct?

Open mlipok opened this issue 3 years ago • 5 comments

I tried to use capabilites string examples from here: https://github.com/operasoftware/operachromiumdriver/blob/master/docs/desktop.md

Unfortunately, no luck.

My finall workable versoin is

{
    "capabilities":{
        "alwaysMatch":{
            "goog:chromeOptions":{
                "w3c":true,
                "excludeSwitches":[
                    "enable-automation"
                ],
                "binary":"C:\\Users\\Szef\\AppData\\Local\\Programs\\Opera\\opera.exe"
            }
        }
    }
}

so my question is: Are the capabilites string examples form desktop.md not correct?

mlipok avatar Feb 25 '22 09:02 mlipok

@mlipok for selenium 4 its better to use ChromeOptions instead of capabilities Take a look at new examples i pushed today in PR https://github.com/operasoftware/operachromiumdriver/pull/106

https://github.com/aleksandr-kotlyar/operachromiumdriver/blob/32ce4b702188c21e2cd1faf0854a47a6a229e4f7/examples/desktop_selenium_4.x.py

aleksandr-kotlyar avatar Mar 09 '23 21:03 aleksandr-kotlyar

@mlipok for selenium 4 its better to use ChromeOptions instead of capabilities

Ok. So I ask if this following document: https://github.com/operasoftware/operachromiumdriver/blob/master/docs/desktop.md

should be changed accordingly?

mlipok avatar Mar 12 '23 15:03 mlipok

Are the capabilites string examples form desktop.md not correct?

It was my question in OP but maybe not well worderd.

mlipok avatar Mar 12 '23 15:03 mlipok

@mlipok for selenium 4 its better to use ChromeOptions instead of capabilities

Ok. So I ask if this following document: https://github.com/operasoftware/operachromiumdriver/blob/master/docs/desktop.md

should be changed accordingly?

Merged. Should be actual now. ;-)

aleksandr-kotlyar avatar Apr 21 '23 07:04 aleksandr-kotlyar

I had in a mind that using: https://github.com/operasoftware/operachromiumdriver/blob/495bb0313bb59fc0f92acc2887ec9b60ef3395e8/docs/desktop.md?plain=1#L42-L46 or https://github.com/operasoftware/operachromiumdriver/blob/495bb0313bb59fc0f92acc2887ec9b60ef3395e8/docs/desktop.md?plain=1#L58-L62

failed when I was used it.

I asked/proposed to change to something like this:

"goog:chromeOptions":{
	"w3c":true,
	"excludeSwitches":[
	    "enable-automation"
	],
	"binary":"C:\\Users\\Szef\\AppData\\Local\\Programs\\Opera\\opera.exe"
    }

summary: specifically 'operaOptions' was wrong in my cases and I had to use `"goog:chromeOptions"

btw. Of course I can be wrong, becuase I not use Selenium/Python, instead of I use AutoIt and we automate websites with sending HTTP request to running instance of operadriver.exe

mlipok avatar Apr 21 '23 08:04 mlipok