2016年10月13日 星期四

[selenium] 讓 chrome 啟動時最大化視窗

chromeDriverExeFilePath = "path-to-executable/chromedriver.exe"
options = webdriver.ChromeOptions()
options.add_argument("--start-maximized")
driver = webdriver.Chrome(executable_path=chromeDriverExeFilePath, chrome_options=options)

沒有留言: