📜  如何远程测试 - 无论代码示例

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

代码示例1
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));