您的位置:首页 > 其它

Selenium - Why there is no need of external firefox driver like IE and chrome in selenium2.0?

2016-04-19 18:09 351 查看
The FirefoxDriver is special, it comes pre-bundled in the package:
https://code.google.com/p/selenium/wiki/FirefoxDriver
Firefox driver is included in the selenium-server-stanalone.jar available in the downloads. The driver comes in the form of an xpi (firefox extension) which is added to the firefox profile
when you start a new instance of FirefoxDriver.

In a very similar way to how the Safari driver works:
https://code.google.com/p/selenium/wiki/SafariDriver
The SafariDriver is implemented as a Safari browser extension. The driver inverts the traditional client/server relationship and communicates with the WebDriver client using WebSockets.
It is just an extension that is created and used to communicate with Firefox, the other browsers & drivers simply don't follow the same implementation and thus, you are required to start drivers
& executables for the others.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息