嗨,伙计们
我正在尝试运行以下代码:
options = webdriver.ChromeOptions()
options.add_argument("download.default_directory=C:\\Users\\gabriel.lucena\\Documents\\Python Scripts")
options.add_argument("--headless")
driver.get("xpage")
如果这个参数options.add_参数(“--headless”)被禁用,它们就会起作用
驱动程序初始化在哪里。您需要在初始化驱动程序时传递chrome选项
现在,如果您只是运行此代码来检查headless选项是否有效
相关问题 更多 >
编程相关推荐