I'm wondering how I can use Sauce Connect and their rest api to disable disable video recording and screen shots. Thanks!
The only way I know to disable video recording and screenshots is when you create a WebDriver
instance with Selenium, you have to set the desired capabilities named record-screenshots
and record-video
to "false"
. For instance, in Python:
from selenium import webdriver
desired_capabilities = dict(
webdriver.DesiredCapabilities.CHROME)
desired_capabilities["record-screenshots"] = "false"
desired_capabilities["record-video"] = "false"
driver = webdriver.Remote(
desired_capabilities=desired_capabilities,
command_executor="http://localhost:4444/wd/hub")
The REST API is meant to be used after a test has started so it would not be able to prevent the creation of the video and screenshots in the first place. I've seen no evidence that Sauce Connect would be able to do anything about this.