如何针对 selenium 网格运行 python 脚本
我可以通过 selenium rc 运行 python 脚本。 我不知道在 selenium 网格中运行这些脚本。我无法从任何地方获得正确的答案。是否可以从 selenium eclipse 运行 python 脚本。 请任何人尽快向我提供解决方案。 谢谢。
I am able to run python scripts throgh selenium rc.
I dont know to run these scripts in selenium grid.I am not able to get the correct answer from anywhere.is it possible to run python scripts from selenium eclipse.
Please anyone provide me the solution as soon as possible.
Thx.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,您必须使用以下代码安装 selenium:
或者,您可以从 PyPI(例如selenium-2.53.1.tar.gz),将其解压并运行:
上述两种方法都将selenium安装为系统范围的软件包,这将需要对该计算机进行管理/根访问。您可以考虑使用 virtualenv 来创建隔离的 Python 环境。
first of all you have to install selenium with this code:
Alternately, you can download the source distribution from PyPI (e.g. selenium-2.53.1.tar.gz), unarchive it, and run:
both of the methods described above install selenium as a system-wide package That will require administrative/root access to there machine. You may consider using a virtualenv to create isolated Python environments instead.
你问了很多没有意义的事情。例如,不存在“硒食”这样的东西。无论如何,我会尽力回答。
您的 Python 脚本应该让客户端连接到 Selenium Grid Hub,而不是特定的 RC 服务器。然后,集线器负责将请求分派到网格中的任何注册节点。网格与 Python 无关。
You're asking a lot of things that don't really make sense. E.g., there is no such thing as "selenium eclipse." Anyway, I'll try to answer the best I can.
Your Python scripts should have the client connect to the Selenium Grid Hub instead of a specific RC Server. The hub is then responsible for dispatching the request to any registered nodes in the grid. There is nothing Python-specific involved with grid.