简体   繁体   English

“Selenium-server-standalone.jar”和“Selenium Client & WebDriver”之间有什么区别?

[英]What are the differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'?

What are the Implementations differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'. “Selenium-server-standalone.jar”和“Selenium Client & WebDriver”之间的实现区别是什么。 Following is the link from SeleniumHQ.org website [ http://www.seleniumhq.org/download/] ..以下是来自 SeleniumHQ.org 网站的链接 [ http://www.seleniumhq.org/download/] ..

  1. http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
  2. " http://selenium-release.storage.googleapis.com/2.44/selenium-java-2.44.0.zip " http://selenium-release.storage.googleapis.com/2.44/selenium-java-2.44.0.zip

I know first one is Formerly known as Selenium RC and second one is Selenium 2.0(Webdriver).我知道第一个以前称为 Selenium RC,第二个是 Selenium 2.0(Webdriver)。 But Is the latest version supporting all the jars in Webdriver in Selenium Server.但是是支持Selenium Server中Webdriver中所有jar的最新版本。 I have only Selenium Server available, Did all the method's in Selenium Webdriver supports in Selenium Server?我只有 Selenium Server 可用,Selenium Webdriver 中的所有方法都支持 Selenium Server 吗? likewise, what are the differences between the jars in it?同样,里面的罐子有什么区别?

could pls help请帮忙

/Thanks /谢谢

I see a bit of confusion here... Regarding " Selenium WebDriver " & " Selenium Server "我在这里看到了一些混乱......关于“ Selenium WebDriver ”和“ Selenium Server

Selenium WebDriver 2.0 - helps to write scripts for automating browsers..this package provides us with classes & methods to achieve automation. Selenium WebDriver 2.0 - 帮助编写自动化浏览器的脚本..这个包为我们提供了实现自动化的类和方法。 After writing scripts we can run them on LOCAL MACHINE and see automation ourselves.编写脚本后,我们可以在 LOCAL MACHINE 上运行它们并自己查看自动化。 WebDriver projects were merged with selenium RC to overcome the drawbacks of selenium RC making it selenium WebDriver 2.0 WebDriver 项目与 selenium RC 合并以克服 selenium RC 的缺点,使其成为 selenium WebDriver 2.0

Selenium Server: Now once i have my scripts (as mentioned above),To run scripts on REMOTE MACHINES (Test Beds) and NOT ON LOCAL MACHINE we do it using selenium server . Selenium 服务器:现在一旦我有了我的脚本(如上所述),要在远程机器(测试台)而不是本地机器上运行脚本,我们使用selenium 服务器来执行 So in short Selenium Webdriver works together with Selenium Server ..they co-exist to help and not to replace each other.所以简而言之, Selenium WebdriverSelenium Server一起工作……它们共存是为了帮助而不是相互替换。

I hope this helps我希望这有帮助

From Selenium WebDriver official Documentation:来自 Selenium WebDriver 官方文档:

WebDriver and the Selenium-Server You may, or may not, need the Selenium Server, depending on how you intend to use Selenium-WebDriver. WebDriver 和 Selenium-Server您可能需要也可能不需要 Selenium Server,这取决于您打算如何使用 Selenium-WebDriver。 If your browser and tests will all run on the same machine, and your tests only use the WebDriver API, then you do not need to run the Selenium-Server;如果您的浏览器和测试都在同一台机器上运行,并且您的测试仅使用 WebDriver API,那么您不需要运行 Selenium-Server; WebDriver will run the browser directly. WebDriver 将直接运行浏览器。

There are some reasons though to use the Selenium-Server with Selenium-WebDriver.虽然使用 Selenium-Server 和 Selenium-WebDriver 有一些原因。

  • You are using Selenium-Grid to distribute your tests over multiple machines or virtual machines (VMs).您正在使用 Selenium-Grid 在多台机器或虚拟机 (VM) 上分发您的测试。
  • You want to connect to a remote machine that has a particular browser version that is not on your current machine.您想要连接到具有当前计算机上没有的特定浏览器版本的远程计算机。
  • You are not using the Java bindings (ie Python, C#, or Ruby) and would like to use HtmlUnit Driver您没有使用 Java 绑定(即 Python、C# 或 Ruby)并且想使用 HtmlUnit 驱动程序

References:参考:

  1. http://www.seleniumhq.org/docs/03_webdriver.jsp#webdriver-and-the-selenium-server http://www.seleniumhq.org/docs/03_webdriver.jsp#webdriver-and-the-selenium-server

Selenium-server-standalone.jar is used for executing tests through Selenium Grid for distributing the test in multiple nodes and browsers. Selenium-server-standalone.jar 用于通过 Selenium Grid 执行测试,以便在多个节点和浏览器中分发测试。

Selenium Web Driver is used for executing in one machine in one browser at a time. Selenium Web Driver 用于一次在一台浏览器中的一台机器上执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 selenium-server-standalone-2.37.0.jar损坏了? - selenium-server-standalone-2.37.0.jar is broken? Selenium独立服务器jar文件挂起 - Selenium standalone server jar file hangs Selenium WebDriver-什么是“ Selenium客户端和WebDriver语言绑定” - Selenium WebDriver - What is “Selenium Client & WebDriver Language Bindings” 如果我不使用 selenium 服务器独立文件,是否需要 selenium 服务器来使用 selenium 客户端创建 selenium 自动化? - Is selenium server required to create selenium automation using selenium client if i am not using selenium server standalone file? 什么时候需要硒独立罐? - When selenium standalone jar is required? 执行 selenium 独立 jar 时出现问题 - problem in executing selenium standalone jar Selenium Webdriver 和 GeckoDriver 有什么区别? - What is the difference between Selenium Webdriver and GeckoDriver? selenium 中的 ChromeDriver 和 WebDriver 有什么区别? - What is the difference between ChromeDriver and WebDriver in selenium? Selenium Webdriver和SoapUI有什么区别? - What is the difference between Selenium Webdriver and SoapUI? Selenium WebDriver 中的 getText() 和 getAttribute() 有什么区别? - What is the difference between getText() and getAttribute() in Selenium WebDriver?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM