How to view the API for Python selenium

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.