-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeUndetected Chromedriver Mode / CDP ModequestionSomeone is looking for answersSomeone is looking for answers
Description
Is it possible to interact SauceLab testing
platform with seleniumbase. I need to use SauceLab platform to run my seleniumbase script with uc True
, but i don't know how to do configuration with seleniumbase to achieve this.
from selenium.webdriver.chrome.options import Options as ChromeOptions
from selenium.webdriver import Remote
options = ChromeOptions()
options.browser_version = 'latest'
options.platform_name = 'Windows 11'
sauce_options = {}
sauce_options['username'] = 'username'
sauce_options['accessKey'] = 'accesskey'
sauce_options['build'] = 'selenium-build-0HI0J'
sauce_options['name'] = 'testing'
options.set_capability('sauce:options', sauce_options)
url = "https://ondemand.eu-central-1.saucelabs.com:443/wd/hub"
driver = Remote(command_executor=url, options=options)
with SB(uc=True,headless2=True,chromium_arg="--no-sandbox --disable-dev-shm-usage --disable-gpu") as sb:
testing_function(sb=sb)
This is the configuration i want to add with seleniumbase with UC
True.
Metadata
Metadata
Assignees
Labels
UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeUndetected Chromedriver Mode / CDP ModequestionSomeone is looking for answersSomeone is looking for answers