saucelabs / visual-examples

10 stars 7 forks source link

Example for webdriver selenium JS/TS #33

Open matzetronic opened 1 year ago

matzetronic commented 1 year ago

Hi, in our enterprise setup we can not use webdriver.io and instead use selenium webdriver for javascript. Can you please provide an example on how to use the new service with selenium webdriver in JS/TS (especially how to configure the capabilities). As an alternative it would be also fine to use the graphql API directly from JS/TS but some examples for that would be also of great help. Thanks!

FriggaHel commented 1 year ago

Hi @matzetronic !

Currently we don't have an example with Selenium in JS/TS. From a capabilities standpoint, it should not change as the logic occurs in the script running the session not near the part running the browser.

You'll find here the technical documentation of the API and the available methods. Alternatively you can rely on @saucelabs/visual which already deal with this GraphQL connection and the boiler plate part around it.

Lifecycle should be:

I don't have any timeline for more detailed documentation regarding API itself. Same for Selenium Javascript, I don't have any timeline for this integration.

Let me know if that helps.