browserstack / robot-browserstack

Code samples for robot tests on browserstack
0 stars 7 forks source link

desired_capabilites argument for Open Browser Robot Framework keyword is deprecated #18

Open Acodyme opened 1 year ago

Acodyme commented 1 year ago

I follow your code with customization on my client solution.

Since Robot Framework SeleniumLibrary 6.1.1 have been release, the desired_capabilities is deprecated : _If you use desiredcapabilities they are deprecated and removed completely by Selenium. SeleniumLibrary just ignores that you passed them in. We will, most likely in the next release just remove that argument, but I wanted to ease you into this as best as I could. This is not the place for a tutorial on what has been the way to do this but you can find plenty about that on either Selenium Grid documentation or vendors like SauceLabs or BrowserStack.

What is the new method to launch execution with SeleniumLibrary and Browserstack Automate hub ?

sharutkarsh commented 1 year ago

Hi can you please specifcy what exactly is the issue you are facing with the detailed steps?

You can also create a support ticket with us using this link: https://www.browserstack.com/contact#technical-support

Lucas-C commented 2 months ago

I have the same issue / see the same warning in my Robot Framework logs:

[ WARN ] desired_capabilities has been deprecated and removed. Please use options to configure browsers as per documentation.

This come from the robotframework-seleniumlibrary package used in this demo repository: https://github.com/browserstack/robot-browserstack/blob/main/requirements.txt

The warning is produced there: https://github.com/robotframework/SeleniumLibrary/blob/v6.2.0/src/SeleniumLibrary/keywords/browsermanagement.py#L281

Could you maybe update this demo project in order to demonstrate how to substitute desired_capabilities by the new recommended alternative?

sharutkarsh commented 2 months ago

Use this if it helps https://github.com/BrowserStackCE/browserstack-examples-robot,