//Choose file
WebElement menu1 = (new WebDriverWait(driver,
10)).until(ExpectedConditions.presenceOfElementLocated(By.xpath("//*[@id='fileId']")));
menu1.click();
String commands ="D:\\dsdd.exe";
Runtime.getRuntime().exec(commands);
AutoIt code for file upload, Compile it and use it
sleep(3000)
Send("C:\Users\Ritesh\Desktop\decNewFile\new\simple_www.zip")
sleep(3000)
Send("{ENTER}")
Powered By- selenium blogs Hitesh Singh
WebElement menu1 = (new WebDriverWait(driver,
10)).until(ExpectedConditions.presenceOfElementLocated(By.xpath("//*[@id='fileId']")));
menu1.click();
String commands ="D:\\dsdd.exe";
Runtime.getRuntime().exec(commands);
AutoIt code for file upload, Compile it and use it
sleep(3000)
Send("C:\Users\Ritesh\Desktop\decNewFile\new\simple_www.zip")
sleep(3000)
Send("{ENTER}")
Powered By- selenium blogs Hitesh Singh
No comments:
Post a Comment