Open matzetronic opened 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:
createBuild
to create the Visual BuildcreateSnapshotUpload
to get a link where to upload your screenshot.createSnapshot
to register the newly uploaded screenshot (+ metadata) to the buildfinishBuild
to mark the build as completed.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.
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!