sikuliwebdriver不在受支持的not驱动程序中,可以在thucydides配置中指定。有没有一种方法可以通过代码指定它,从而使它正确地注入到Thucydides页面对象中?
发布于 2013-06-22 03:21:05
这是可以做到的。
然而,它看起来有点丑陋:
@Managed(driver = "SIKULI")
public WebDriver driver;
@Test
public void sikuliTest() throws MalformedURLException {
driver.navigate().to("https://maps.google.com");
ImageElement image;
image = ((SikuliFirefoxDriver)((WebDriverFacade)driver).getProxiedDriver()).findImageElement(new URL("file:///C:/temp/part_of_map.png"));
image.doubleClick();
image.doubleClick();
}这是对你有用的东西吗?
我可以和John Smart谈谈制作这个特性的事情。或者,您可以创建功能请求HERE
https://stackoverflow.com/questions/17210653
复制相似问题