I have a script build using keywords for Selenium webdriver. This scripts has an autoIt.ext for a specific task of a file upload. Its working fine with Eclipse. However, when I schedule them using Jenkins, it fails at this step.
ControlFocus("Open", "", "Edit1")
ControlSetText("Open", "", "Edit1", "C:\XXX\xxx.jpg") ControlClick("Open", "", "Button1")
- The keyword:
public static void file_Upload(String vKeyword){
new WebDriverWait(myDriver, 30).until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@title='Choose a file to upload']")));
myDriver.findElement(By.xpath("//input[@title='Choose a file to upload']")).click();
Runtime.getRuntime().exec("C:\XXX\xxx.exe");
}