📜  远程测试 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:05.294000             🧑  作者: Mango

代码示例2
I configure my driver class to run remote test
on selenium grid

DesiredCapabilities.desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("browser","chrome");
URL gridUrl = new URL("http://ipAdress.4444/wd/hub");
driverPool.set(new RemoteWebDriver(gridUrl, desiredCapabilities));