selenium webdriver译文(一):selenium webdriver简介

自己翻的,凑合着看吧

 

Selenium近期最大的变更就是包含了WebDriver API。使用 Selenium Server从用户的角度使用原生浏览器访问本地或远程机器,这件事情在UI自动化领域是一个飞速的发展。

Selenium WebDriver除了包含Selenium Remote Control的功能之外,还合并了selenium1.0及其相关功能。这意味着,它不仅支持1.0+2.0,还完成了各浏览器控制的代码实现。这就是通常所称的webdriver,有时也被称作selenium 2。

Selenium 1.0 + WebDriver = Selenium 2.0

1)webdriver的设计更简单,使用了更简洁的接口程序,以解决在 Selenium-RC API上的一些限制

2)webdriver同Selenium1.0相较,其更是一种紧凑的面向对象的API

3)webdriver对浏览器的驱动更快速,同时也解决了1.x在某些功能上未覆盖的缺憾,比如上传、下载文件,弹出框和对话框的功能

4)webdriver解决了Selenium RC的单机运行限制

webdriver其实就是个关键接口的名字(用java编写的),接口实现类如下:

AndroidDriver,ChromeDriver,EventFiringWebDriver,FirefoxDriver,HtmlUnitDriver,InternetExplorerDriver,PhantomJSDriver,RemoteWebDriver,SafariDriver

 

更多精彩,尽在 the documentationandRemote Control to WebDriver Migration Notes.

 

欢迎光临娇娇家的美衣阁 http://shop105984718.taobao.com/

 

原文:

http://docs.seleniumhq.org/projects/webdriver/

The biggest change in Selenium recently has been the inclusion of the WebDriver API. Driving a browser natively as a user would either locally or on a remote machine using the Selenium Server it marks a leap forward in terms of browser automation.

Selenium WebDriver fits in the same role as RC did, and has incorporated the original 1.x bindings. It refers to both the language bindings and the implementations of the individual browser controlling code. This is commonly referred to as just "WebDriver" or sometimes as Selenium 2.

Selenium 1.0 + WebDriver = Selenium 2.0

  • WebDriver is designed in a simpler and more concise programming interface along with addressing some limitations in the Selenium-RC API.
  • WebDriver is a compact Object Oriented API when compared to Selenium1.0
  • It drives the browser much more effectively and over comes the limitations of Selenium 1.x which affected our functional test coverage, like the file upload or download, pop-ups and dialogs barrier
  • WebDriver overcomes the limitation of Selenium Rc's Single Host origin policy

WebDriver is the name of the key interface against which tests should be written in Java, the implementing classes one should use are listed as below:

AndroidDriver, ChromeDriver, EventFiringWebDriver, FirefoxDriver, HtmlUnitDriver,InternetExplorerDriver, PhantomJSDriver, RemoteWebDriver, SafariDriver

For More information on Selenium WebDriver, please see the documentation and Remote Control to WebDriver Migration Notes.

转载于:https://www.cnblogs.com/joewu/articles/3715383.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值