MarketSquare / robotframework-seleniumlibrary-java

Java port of the Python based SeleniumLibrary for Robot Framework
Apache License 2.0
23 stars 16 forks source link

Open browser with desired capabilities as a dictionnary do not work #97

Closed csand83 closed 2 years ago

csand83 commented 4 years ago

Hello,

I'm trying to call open browser using a dictionary to give the list of desired capabilities but the parameters are not received correctly by sauce labs. I've tried the same code exactly with robotframework in python and it's working perfectly. Could you please check if this should be working ?

Do not hesitate to contact me if you need more info.

Thanks a lot.

Best regards, Christophe

Hi-Fi commented 4 years ago

I haven't used Saucelabs at all, but there's a difference in desired capabilities adding between Java and Python version. In Python there's just desired_capabilities=None, but in Java there's desiredCapabilities=None, browserOptions=None (probably because of Selenium itself).

So same options are not necessarily working, but those has to be adjusted accordingly (or make the change to code to handle things same way, which might be hard because of Selenium differences).

Hi-Fi commented 2 years ago

No comments, so closing.