简体   繁体   English

是否可以以编程方式检查selenium远程Web驱动程序服务器是否正在运行

[英]Is it posible to programmatically check if the selenium Remote Webdriver Server is running or not

Hi is it possible to check if the Remote webdriver server is running or not using C#. 您好可以使用C#检查远程webdriver服务器是否正在运行。 Pinging the server did not help , Can you tell what type of call should be done and what will be the feedback that we can expect from the server Ping服务器没有帮助,你能说出应该做什么类型的调用以及我们可以从服务器获得什么反馈

You should really define what you mean by 'running'. 你应该真正定义'跑'的意思。

You can get the general status of the server by chucking a JSON request at it. 可以通过向其中删除JSON请求获取服务器的一般状态。

You see the server will implement the Wire Protocol, so it means that it will, or at least should , respond to the following list of REST url's: 您看到服务器将实现有线协议,因此这意味着它将或者至少应该响应以下REST URL列表:

http://code.google.com/p/selenium/wiki/JsonWireProtocol http://code.google.com/p/selenium/wiki/JsonWireProtocol

Specifically: 特别:

http://code.google.com/p/selenium/wiki/JsonWireProtocol#/status http://code.google.com/p/selenium/wiki/JsonWireProtocol#/status

and possibly 可能

http://code.google.com/p/selenium/wiki/JsonWireProtocol#GET_/sessions http://code.google.com/p/selenium/wiki/JsonWireProtocol#GET_/sessions

The status supposedly, will: 据称,这种status将:

The server should respond with a general "HTTP 200 OK" response if it is alive and accepting commands

If this is what you mean by 'running', that it is alive and kicking and willing to accept commands, then you will need to send off a request to /status and check for the response you get back. 如果你的意思是“跑步”,它是活着的,并且愿意接受命令,那么你需要向/status发送请求并检查你得到的回复。

暂无
暂无

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

相关问题 如何添加扩展以运行远程多登录 webdriver? (硒 C#) - How to add extension to running remote multilogin webdriver? (Selenium C#) RavenDB,以编程方式检查Server实例是否正在运行 - RavenDB, programmatically check whether Server instance is running selenium webdriver 错误抛出 null 响应的异常,向远程 WebDriver 服务器发送 HTTP 请求以获取 URL - selenium webdriver error A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL Selenium ChromeDriver - 对远程 WebDriver 服务器的 HTTP 请求在 60 秒后超时 - Selenium ChromeDriver - the HTTP request to the remote WebDriver server for URL timed out after 60 seconds OpenQA.Selenium.WebDriverException:到远程WebDriver服务器的URL的HTTP请求在60秒后超时 - OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL timed out after 60 seconds 远程桌面,Selenium和SendKeys:WebDriver服务器在60秒后超时 - Remote Desktop, Selenium and SendKeys: WebDriver server timed out after 60 seconds selenium 远程 webdriver 屏幕截图错误地捕获颜色 - selenium remote webdriver screenshot captures colours incorrectly 如何在Azure管道中为C#运行Selenium UI测试。 OpenQA.Selenium.WebDriverException:到远程WebDriver服务器的URL的HTTP请求 - How to Run Selenium UI tests in azure pipeline for c#. OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL 如何检查远程PC /服务器上是否正在运行特定进程? - How can I check if a specific process is running on a remote PC/Server? 使用 Chrome 在 azure 管道中运行大量测试场景时,向远程 WebDriver 服务器获取 HTTP 请求以获取 URL - Getting The HTTP request to the remote WebDriver server for URL when running massive test scenarios in azure pipline using Chrome
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM