Skip to content

Instantly share code, notes, and snippets.

View wliao008's full-sized avatar

Wei Liao wliao008

  • Disney Streaming
  • Buffalo, NY
View GitHub Profile
@b4oshany
b4oshany / chrome.robot
Created May 26, 2018 02:21
Python Robot Framework with Headless Chrome Setup and Robot Files
*** Keywords ***
Open Chrome
[Arguments] ${url}
${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${chrome_options} add_argument --disable-extensions
Call Method ${chrome_options} add_argument --headless
Call Method ${chrome_options} add_argument --disable-gpu
Call Method ${chrome_options} add_argument --no-sandbox
Create Webdriver Chrome chrome_options=${chrome_options}