避免在硒调用期间打开远程服务器上的浏览器 [英] Avoid opening browser on remote server during selenium call

查看:109
本文介绍了避免在硒调用期间打开远程服务器上的浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用webdriver编写了一个硒应用程序.我希望在远程服务器上运行它.当我通过腻子(以及Xming)登录服务器时,硒将尝试仅在服务器上打开浏览器,并通过外部显示器加载页面.但是,这样做比我只能在本地主机(而不是服务器)上打开浏览器要花很多时间.是否有可能发生这种情况,或者只有在服务器上打开才是唯一的选择(这很慢).请告诉我我是否也缺少一些东西.

I have written a selenium application using webdriver. I wish to run it on a remote server. When I do that by logging into the server via putty (along with Xming), the selenium tries opening the browser on the server only and load the pages through the external display. However in doing that, it takes a lot of time than if I would have been able to get the browser open on my localhost only (and not the server). Is it possible for such thing to happen or opening on the server only is the only option (which is painfully slow). Kindly tell me if I am missing something as well.

谢谢.

推荐答案

尝试使用Selenium Grid(而不是Putty)在远程服务器上运行Selenium应用程序. Selenium网站上有使用Selenium Grid的出色的快速入门指南: http://code. google.com/p/selenium/wiki/Grid2 .

Try using Selenium Grid, instead of Putty, to run your Selenium application on a remote server. The Selenium website has an excellent Quick Start guide for using the Selenium Grid: http://code.google.com/p/selenium/wiki/Grid2.

这篇关于避免在硒调用期间打开远程服务器上的浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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