sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47728
[Question #670875]: I am using sikuli in windows 8
New question #670875 on Sikuli:
https://answers.launchpad.net/sikuli/+question/670875
@Test
public void runSikuli() throws FindFailed, InterruptedException{
System.setProperty("webdriver.chrome.driver"," ");
WebDriver driver ;
ChromeOptions options = new ChromeOptions();
options.addArguments("--start-maximized");
driver = new ChromeDriver( options );
driver.manage().window().maximize();
driver.get("https://");
Thread.sleep(5000);
driver.findElement(By.id("")).clear();
Thread.sleep(5000);
driver.findElement(By.id((""))).sendKeys(""+Keys.ENTER);
Thread.sleep(5000);
driver.findElement(By.xpath( " ")).click();
//Thread.sleep(8000);
WebDriverWait wait3 = new WebDriverWait(driver,500);
wait3.until(ExpectedConditions.visibilityOfElementLocated(By.id("")));
Screen screen = new Screen();
Pattern pattern = new Pattern("D:\\automation\\k2.png");
if ( screen.exists(pattern) != null)
{
System.out.println("test passed");
}
}
}
please help.why it fail sometimes .no error shown in console.just not printing test passed sometime,i have also added wait
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.