webDriver阅读笔记 2

Posted zhizhiyin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了webDriver阅读笔记 2相关的知识,希望对你有一定的参考价值。

https://seleniumhq.github.io/selenium/docs/api/java/index.html

 

HtmlUnit Driver

This is currently the fastest and most lightweight implementation of WebDriver. As the name suggests, this is based on HtmlUnit. HtmlUnit is a java based implementation of a WebBrowser without a GUI. For any language binding (other than java) the Selenium Server is required to use this driver.

WebDriver driver = new HtmlUnitDriver();

  试了一下,没有gui界面,但是可以正常测试,不过会有css警告。

其他的Driver不做概述,FirefoxDriver(),ChromeDriver(),InternetExplorerDriver()等等有界面,都是打开对应的browser。

 

iosDriver 和android的Driver

参考网址:  

      http://ios-driver.github.io/ios-driver/

      http://selendroid.io/

 

以上是关于webDriver阅读笔记 2的主要内容,如果未能解决你的问题,请参考以下文章