Often found a lot of students installed Python+selenium webdriver development environment do not know how to look at the API documentation, here ethanol simple introduction of specific methods, in fact very simple.
First open the command line and enter in the DOS window:
1
python -m pydoc -p
4567
Simply explain:
- Python-m Pydoc means to open the Pydoc module, Pydoc is the preferred tool for viewing Python documents;
- -p 4567 means start the server on port 4567;
Then access http://localhost:4567/in the browser, and you should see all the modules in Python now
Press Ctrl+f, enter selenium, locate the link to the selenium document, and then click Enter to http://localhost:4567/selenium.html this page
This is where the selenium document is located, and then you can view it according to your needs. For example, if you want to see the basic methods of the Webdriver class, you can access this page http://localhost:4567/selenium.webdriver.remote.webdriver.html
How to view the API for Python selenium