【发布时间】:2016-07-26 12:23:39
【问题描述】:
我一直在努力理解任何模块的文档:
我想使用selenium 模块。
查看文档,我真的无法实现任何东西。
鉴于这部分 Docs API:http://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.chrome.webdriver
我看到了:class selenium.webdriver.chrome.webdriver.WebDriver(...)
当我尝试在我的 python 代码中实现它时,它说:AttributeError: module 'selenium' has no attribute 'webdriver'
python 3.x 代码:
import selenium
browser = selenium.webdriver.chrome.webdriver.WebDriver(executable_path='C:/Users/chromedriver')
谁能解释我如何阅读、理解和使用任何文档?
【问题讨论】:
-
我们如何解释如何阅读和理解?
-
我投票决定将此问题作为离题结束,因为它太宽泛了,与帮助中心定义的编程无关。
标签: python python-3.x selenium selenium-webdriver