Forums

Headless Chrome Selenium

Hi , I want to use Selenium with Headless Chrome on your server with my account . Can you please enable the access to use it ?

Sure, that's done now. The next step is for you to upgrade Selenium for your account -- for example, if you're using Python 3.7, run this in Bash:

pip3.7 install --user --upgrade selenium

...and then you can run Selenium with Chrome using code like this:

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--headless")
chrome_options.add_argument("--disable-gpu")
browser = webdriver.Chrome(options=chrome_options)

try:
    browser.get("https://www.google.com")
    return "Page title was '{}'".format(browser.title)

finally:
    browser.quit()

Can you please enable the access to use Selenium with Headless Chrome on your serve.

It's already enabled for your account.

I have a paid account , and use free account to make tests ,

Can this be run on a free account?

we can turn on that feature for you if you want, but you will only be able to access a whitelist of external sites. that depends on whether you will access more than that.

I have a free account could you enable the access to use selenium with headless chrome on your server for me

Sure -- I've activated the beta virtualization system for you; as the next step, you'll need to upgrade Selenium for your account -- for example, if you're using Python 3.7, run this in Bash:

pip3.7 install --user --upgrade selenium

...and then you can run Selenium with Chrome using code like this:

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--headless")
chrome_options.add_argument("--disable-gpu")
browser = webdriver.Chrome(options=chrome_options)

try:
    browser.get("https://www.google.com")
    print("Page title was '{}'".format(browser.title))

finally:
    browser.quit()