Advertisement
Guest User

Untitled

a guest
Jun 10th, 2021
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. caps = { "browserName": "chrome",
  2. "version": self.version,
  3. "platform": "LINUX",
  4. "enableVideo": enableVideo,
  5. "enableVNC": True,
  6. "env":["HIDE_CURSOR=0",
  7. "FRAME_RATE=24"],
  8. "pageLoadStrategy": "none",
  9. "excludeSwitches": ["enable-automation"],
  10. "goog:chromeOptions": {"args": ["disable-notifications"
  11. "disable-infobars",
  12. "start-maximized",
  13. "disable-blink-features=AutomationControlled",
  14. "page_load_strategy=none"],
  15. "excludeSwitches":["enable-automation"],
  16. "prefs":{"credentials_enable_service": False,
  17. "profile.password_manager_enabled": False,
  18. "profile.default_content_setting_values.notifications": 2}} }
  19. #chrome_options.add_argument('--start-maximized')
  20. self.driver = webdriver.Remote( command_executor='http://localhost:4444/wd/hub/',
  21. desired_capabilities=caps)
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement