我可以在计算机 A 上运行 Selenium,并在计算机 B 上看到浏览器吗? [英] Can I run Selenium on Computer A, and see the browser in Computer B?

查看:27
本文介绍了我可以在计算机 A 上运行 Selenium,并在计算机 B 上看到浏览器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在计算机 A 上准备了一些 Selenium 项目.当你运行这个项目时,一个新的浏览器会在计算机 A 中打开,并连接到 www.somesite.com 并运行测试.

Imagine I have some Selenium Project ready on Computer A. When you run this project, a new browser opens in Computer A, and connects to www.somesite.com and runs the tests..

现在,同样在计算机 A 上,假设我正在运行一个网页,该网页有一个按钮,可触发这些测试...

Now, also on computer A, imagine I am running a web page, which has a button, which triggers these tests...

因此,当我导航到 www.ipofcomptera.com 并单击运行测试"时,会在计算机 A 中打开一个新浏览器,并运行测试...

So when I navigate to www.ipofcomptera.com and click "Run Tests", a new browser opens in Computer A, and runs the tests...

我想要的是,我要么希望浏览器在计算机 B(我正在访问计算机 A 的计算机)中打开,要么也可以在 A 中运行,但我也想查看我计算机上的所有步骤.

What I want is, I either want that browser opens in Computer B ( The computer I am reaching to Computer A ) or, it may as well run in A but I want to see all the steps on my computer as well.

希望我的问题清楚,谢谢

Hope my question clear, Thanks

推荐答案

这正是 Selenium网格是为了!

玩得开心

并且请重新考虑使用 Selenium RC 这实际上是一个不死族,最好使用 RemoteWebDriver 代替.

And please reconsider the usage of Selenium RC which is actually an undead, better use the RemoteWebDriver instead.

这篇关于我可以在计算机 A 上运行 Selenium,并在计算机 B 上看到浏览器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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