【问题标题】:howto run together multiple instance of selenium browser如何一起运行多个硒浏览器实例
【发布时间】:2011-07-31 14:35:59
【问题描述】:

是否可以同时运行多个 selenium 浏览器实例,并且每个实例都可以为自己工作,从而提高速度?

我可以像这样运行一个:

ISelenium selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://localhost/");
selenium.Start();

但是如何打开更多它们并打开每个内部的页面?

【问题讨论】:

    标签: c# selenium selenium-rc


    【解决方案1】:

    查看Selenium Grid:

    (..) 停止等待数小时来获得您的网络验收构建的结果! Selenium Grid 透明地将您的测试分布在多台机器上,以便您可以并行运行测试,(..)这将大大加快浏览器内的网络测试

    入门非常简单 (http://selenium-grid.seleniumhq.org/get_started.html),而且还提供演示站点。

    【讨论】:

    【解决方案2】:

    在你的情况下:

    ISelenium selenium1 = new DefaultSelenium("localhost", 4444, "*chrome",    "http://localhost/");
    selenium1.Start();
    selenium1...
    ISelenium selenium2 = new DefaultSelenium("localhost", 4444, "*chrome",    "http://localhost/");
    selenium2.Start();
    selenium2...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多