如何使用Selenium WebDriver在不同的浏览器上同时运行多个测试?
我在java工作,我甚至尝试下载selenium网格:selenium-server-独立-2.33.0.jar文件。
即使在手术之后,
I am not able to execute these commands on the command prompt
java -jar selenium-server-独立-2.33.0.jar -role集线器-port 4444
java -jar selenium-server-独立-2.33.0.jar -role节点-hub .
还有别的选择吗?
如何同时使用2个FireFoxDrivers?Selenium支持多线程吗?
我有下面的测试,它打开2个firefox浏览器,但这两个导航都只发生在第一个浏览器实例上!
[Test]
public void TestMultithreading()
{
var tasks = new List<Task>
{
new Task(goToBbc),
new Task(goToGoogle)
我找到了一个接一个地在多个浏览器上运行测试的方法,但我找不到一种方法来使用selenium网格在多个浏览器上并行运行我的测试(使用C#)。这就是我目前使用的:
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.IE;
using System.Threading;
namespace SeleniumTests
{
[TestFixture(typeof(FirefoxDriver))]
[TestFixture(typeof(Internet
我正在java中运行一组400个selenium2脚本(webdriver )。
当我在注册到网格的节点上运行脚本时,有时我会得到Error communicating with the remote browser. It may have died错误。在此错误的脚本关闭并开始运行其他脚本之后,由于caused by null error.,将跳过大约10-20个脚本。
另外,一次只有一个浏览器实例在运行。我使用的是铬浏览器。
当我得到Error communicating with the remote browser错误时,caused by null错误就会发生。
我试图消除提供的第