Karate + Selenoid: how to get VNC working?

281 views Asked by At

When trying to run the tests using Karate in Selenoid containers - it works, but I can't see what is going on there through the vnc container. When we use Selenoid without Karate we can set driver capabilities "enableVNC":"true" and everything is working perfectly. With Karate, I suspect, the issue is that Karate is setting those capabilities somewhere to the wrong place. But since I don't have direct access to the driver I cannot set it in the way I need. Any thoughts?

And yeah, I know that Karate provides its own browser image with vnc, but it's a bad practice to use that if we have Selenoid.

Here is how driver configuration looks like:

    Examples:
  | config |
  | {type: 'chrome', addOptions: ['--incognito'], webDriverSession: { desiredCapabilities: { browserName: 'chrome', 'goog:chromeOptions': { credentials_enable_service: false, profile.password_manager_enabled: false }}}} |

Have no idea where in this json to put "enableVNC":"true"

1

There are 1 answers

2
Peter Thomas On

We can't keep track of all the different capabilities and SaaS providers as part of the Karate project - so you may need to ask the Selenoid folks what is the magic.

Here are examples of similar discussion for SauceLabs, etc:

https://stackoverflow.com/a/63270092/143475

https://stackoverflow.com/a/60992292/143475