webDriver閱讀筆記 2
阿新 • • 發佈:2018-04-18
base dex lun net 等等 mos chrom ive color
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