开发者

how to update already running selenium RC test from a Java client?

开发者 https://www.devze.com 2023-03-12 09:26 出处:网络
How开发者_运维知识库 to approach the following scenario? Say atest is already running in selenium rc node on a remote server using RemoteWebDriver.

How开发者_运维知识库 to approach the following scenario?

Say a test is already running in selenium rc node on a remote server using RemoteWebDriver.

The test encounters a missing element (slightest xpath change across different pages).

User provides the correct xpath for that element (this part is done in the Java application running on the user's computer) and selenium test searches for the element again and continues with rest of the test.

First thing that comes to mind is that Selenium server is using Jetty server. How would I communicate between by client java application and this server? can Jetty be ignored and somehow make the client communicate directly with the running selenium test?


When the element can not be located by a given xpath the webdriver will throw an exception which will bubble back to where you are running your test. As long as you catch this exception you will have the chance to check different xpaths.


i guess you are looking for , halt the execution in the browser and continue that execution from where ever you want (from previous statement ), instead of the browser responding back to selenium RC and to client program.

-- you want to completely stop the browser response to the request made by the selenium RC

if this is correct can you please confirm, may be i can help you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号