How to Maximize window in chrome using webDriver (python)

前端 未结 9 1881
天命终不由人
天命终不由人 2021-01-30 08:29

Is there a way to maximize the chrome browser window using python selenium WebDriver?

Note: I am using Chrome Driver 23.0 Any solution on this would be greatly appreciat

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 08:46

    try this, tested on windows platform and it works fine :

    from selenium import webdriver
    browser = webdriver.Chrome('C:\\Users\\yeivic\\Downloads\\chromedriver')
    browser.fullscreen_window()
    browser.get('http://google.com/')
    

提交回复
热议问题