HENNGE / arsenic

Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Other
350 stars 53 forks source link

How to start a Remote session with desired_capabilities and FirefoxProfile? #45

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello,

I'm trying to test a remote Firefox connection using Arsenic. It doesn't look like your Remote service supports desired_capabilities or profile parameters?

Here is the synchronous code I usually use:

    from selenium import webdriver
    capabilities = {
        'platform': 'LINUX', 'browserName': browser, 'version': '',
        'enableVNC': True,
    }
    profile = webdriver.FirefoxProfile()
    profile.set_preference('browser.download.manager.showWhenStarting', False)
    profile.set_preference('browser.helperApps.neverAsk.saveToDisk', 'text/calendar,text/x-vcalendar')

    remote_driver = webdriver.Remote(
        command_executor='http://localhost:4444/wd/hub',
        desired_capabilities=capabilities, browser_profile=profile
    )
antfuentes87 commented 5 years ago

@digiology Did you ever figure this out? Been trying to figure out how I can set a proxy.

nikolaevv commented 4 years ago

++