继续尝试修复AttributeError,但无法解决

时间:2020-11-02 00:41:44

标签: python selenium get

enter image description here

由于某种原因,它告诉我硒没有被使用,并且给我driver.get带来了错误,想知道我在做什么错。

AttributeError: 'str' object has no attribute 'get'

1 个答案:

答案 0 :(得分:0)

您的driver是一个字符串,应该是

# remove the quotation marks
driver = webdriver.Chrome(path)
相关问题