i'm new here , have started using autoit alongside selenium perform automation testing on web application. i'm stuck situation want automate testing on drag , drop element (the user can drag , drop file desktop/folder web application). know in selenium can send file path web element, in scenario want able test functionality of drag , drop.
i'm using autoitx4java bridge , programming in java. sum things up, need creating script opens folder , drags , drops item @ given coordinate. these coordinates determined in selenium can't use exe since need enter coordinates parameters. understand how strictly autoit script, having difficulty doing autoitx object in java. i'm unsure why following code not open folder in specified directory.
autoitx x = new autoitx(); string path = "c:"+file.separator+"users"; x.run("explorer.exe", path); what doing incorrectly or there different method automating should at? advice , time.
just quick google , found this
credit owner
you need compiled exe execute exe file using java code.
runtime.getruntime ().exec ("/folder/exec.exe"); of course, may need thread.sleep file finished executing
Comments
Post a Comment