我一直在掙扎了一會兒瞭解任何模塊的文檔:如何理解文檔和使用模塊
我想用selenium
模塊。
看着文檔,我無法真正實現任何東西。
鑑於文檔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')
有人能解釋我如何閱讀,理解和使用任何文件?
我們如何解釋如何閱讀和理解? – Guy
我正在投票結束此問題,因爲它太廣泛了,而不是根據幫助中心定義的編程。 – TylerH