selenium打开Chrome浏览器并最大化

#打开Chrome浏览器并放大
from selenium import webdriver

def BrowserOpen():
    driver = webdriver.Chrome();
    driver.maximize_window()
    driver.get("https://www.baidu.com")
    driver.quit()


if __name__ == "__main__":
    BrowserOpen()

 

转载于:https://www.cnblogs.com/zhmiao/p/10523146.html

    原文作者:dianyu1876
    原文地址: https://blog.csdn.net/dianyu1876/article/details/102350851
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞