Maximize WebDriver (Selenium 2) in Python

后端 未结 5 846
醉梦人生
醉梦人生 2021-02-05 06:03

I\'m attempting to write a simple script that checks if I have any gmail emails labeled SOMETHING and then opens a firefox browser window to a login page, after which it goes to

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-05 06:21

    I solve it with this line

    self.driver = webdriver.Chrome()
    self.driver.maximize_window()
    

提交回复
热议问题