Viper also supports file download and upload scenarios. It simply handles file open and file save dialog without any Sikuli scripts or external Auto IT execution files.
First check whether following files are intact in your build path in Eclipse.
Next please do a one off registry entry of the .dll file in your execution machine by using the command pompt "Run As Administrator"
regsvr32 F:\Java_Viper_Framework\AutoIT\AutoItX3_x64.dll
Next use the reusable method openDlg in the FileOpenDialog class, which is in Utility package.
Supply the necessary parameters so that Viper is ready to handle your Open or Save dialog popped up.
public void openDlg (String dlgTitle, String filePath, String button_title)
Example -
FileOpenDialog fp = new FileOpenDialog();
fp.openDlg("Open", "E:\\kushan.txt", "Button1");

No comments:
Post a Comment