Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chrome_options = Options()
- chrome_options.add_argument("--headless")
- chrome_options.add_argument('--disable-web-security')
- chrome_options.add_argument('--allow-running-insecure-content')
- self.driver = webdriver.Remote(
- command_executor='http://{}:{}'.format(host, port),
- desired_capabilities=chrome_options.to_capabilities()
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement