我有一个 selenium 网格环境,我已经在 windows7 中启动了 chrome,我想启动 safari,如何配置 safari?这是我的代码:
DesiredCapabilities desiredCapabilities = DesiredCapabilities.safari();
WebDriver driver = new RemoteWebDriver(new URL("http://hub ip"), desiredCapabilities);
driver.get("www.google.com");