方法名:setCapability EdgeOptions.setCapability介绍 暂无 代码示例 代码示例来源:origin: org.seleniumhq.selenium/selenium-edge-driver publicEdgeOptionssetProxy(Proxyproxy){ setCapability(CapabilityType.PROXY,proxy); returnthis; } } 代码示例来源:origin: org.seleniumhq.selenium/selenium-edge-driver publicEdgeOpti...
importorg.openqa.selenium.remote.DesiredCapabilities;//导入方法依赖的package包/类publicstaticWebDrivergetEdgeDriver(){ String path = System.getProperty("user.dir") +"\\Drivers\\EdgeWebDriver.exe"; System.setProperty("webdriver.ie.driver", path); DesiredCapabilities caps = DesiredCapabilities.intern...