Advertisement
vsokoltsov

Untitled

Jan 2nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. chrome_options = Options()
  2. chrome_options.add_argument("--headless")
  3. chrome_options.add_argument('--disable-web-security')
  4. chrome_options.add_argument('--allow-running-insecure-content')
  5. self.driver = webdriver.Remote(
  6. command_executor='http://{}:{}'.format(host, port),
  7. desired_capabilities=chrome_options.to_capabilities()
  8. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement