【发布时间】:2023-01-17 17:33:51
【问题描述】:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
options = Options()
options.add_argument("start-maximized")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
print("hello world")
在 linux ubuntu 上运行 python 3.10
我试图用 selenium 玩 around,但是我在定义 webdriver 之后编写的任何代码都不起作用。 似乎解释器在定义网络驱动程序后卡住了。它打开 webdriver 但只显示“数据:”,没有其他任何内容,也不会响应之后编写的任何代码。
【问题讨论】:
标签: python python-3.x selenium selenium-webdriver