kanteshgyanagoudra / kanta

i'm facing issue with handling autoit script in remote machine using runtime.getruntime.exec();
0 stars 0 forks source link

autoit handling issue in remote machine. #1

Open kanteshgyanagoudra opened 7 years ago

kanteshgyanagoudra commented 7 years ago

I have a script that install the printer using the printer installation dialog of the browser for test automation.

The script enters a path to the file dialog and click on the ok button.

The script runs prefect on my local machine.

I'm using Runtime.getRuntime().exec // to execute the script remotely, it opens but doing nothing, meaning no interaction is being made with the file printer installation dialog.

I use selenium and java to do this, this is the code:

driver.findElement(By.xpath("//a[contains(.,'norprinter9')]")).click(); Thread.sleep(3000); Runtime.getRuntime().exec("C:\Users\Administrator\Desktop\AUTOIT\K1.exe");

kanteshgyanagoudra commented 7 years ago

pls anyone can help me regarding above problem.