zoukankan      html  css  js  c++  java
  • 如何查看python的api

    如何查看python selenium的api

     

    经常发现很多同学装好了python+selenium webdriver开发环境后不知道怎么去查看api文档,在这里乙醇简单介绍一下具体方法,其实非常简单。

    首先打开命令行,在dos窗口输入:

    1
    python -m pydoc -p 4567

      

    简单解释一下:

    • python -m pydoc表示打开pydoc模块,pydoc是查看python文档的首选工具;
    • -p 4567表示在4567端口上启动server;

    然后在浏览器中访问http://localhost:4567/,此时应该可以看到python中所有的Modules

    按ctrl+f,输入selenium,定位到selenium文档的链接,然后点击进入到http://localhost:4567/selenium.html这个页面

    这就是selenium文档所在的位置了,接下来便可以根据自己的需要进行查看了。举个例子,如果你想查看Webdriver类的基本方法,可以访问这个页面http://localhost:4567/selenium.webdriver.remote.webdriver.html

  • 相关阅读:
    三个问题
    2014-7
    2014-5
    2014-2
    2014-1
    2013-11
    mysql中对表操作----为所有列插入数据
    Redis做消息队列
    收集Nginx-access,Nginx-error日志
    .Nginx安装filebeat收集日志:
  • 原文地址:https://www.cnblogs.com/SZLLQ2000/p/5407473.html
Copyright © 2011-2022 走看看