为什么我们需要IEDriver和ChromeDriver,却不需要Firefox Driver? [英] Why do we need IEDriver and ChromeDriver but no Firefox Driver?

查看:111
本文介绍了为什么我们需要IEDriver和ChromeDriver,却不需要Firefox Driver?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我毫不怀疑.

为什么我们需要IEdriver和Chrome Driver在IE和Chrome中运行硒脚本,但是我们不需要firefox驱动程序来运行脚本?

Why do we need IEdriver and Chrome Driver running selenium scrits in IE and Chrome but we do not need a firefox driver to run the script?

有什么理由要这么做吗?

Is there any reason for the same?

推荐答案

  • 这是由于WebDriver中使用的本机浏览器方法.
  • 每个浏览器都使用不同的 JS引擎.
  • 所有驱动程序[Chrome Driver, IE driver, etc.,]都是基于每个浏览器使用的特殊JS引擎构建的.
  • Selenium提供了用于Firefox的内置驱动程序,但不提供其他浏览器的内置驱动程序. [由于TestNG和JUnit库文件现在是Selenium-standalone-server的一部分,所以不确定将来是否会发生.]
    • This is because of the Native Browser approach used in WebDriver.
    • Each and every browser uses different JS Engine.
    • All drivers [Chrome Driver, IE driver, etc.,] are built based on the special JS Engine used by each browser.
    • Selenium offers inbuilt driver for Firefox but not for other browsers. [Not sure it may happen in future, since TestNG and JUnit library files are a part of Selenium-standalone-server right now]
    • 这篇关于为什么我们需要IEDriver和ChromeDriver,却不需要Firefox Driver?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆