Skip to content

Is it possible to add selenum webdriver remote with seleniumbase. #2675

@subh-sk

Description

@subh-sk

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

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModequestionSomeone is looking for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions