sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #41166
[Question #433954]: Application crash if I use sikuli
New question #433954 on Sikuli:
https://answers.launchpad.net/sikuli/+question/433954
Hi
I am trying to automate a windows application ( in Windows 10). Application has a login dialog ,upon success a security question dialog will be shown. Once success, will show the application's main window. Everything works properly when I do manually.
If I try to automate through sikuli, able to process login screen, but upon hitting submit in the security question form ( ie when trying to open the applications main window ) the program crashes. The first two windows are looks like dialog, can't maximize..
simplified code:
def process_form(myapp):
region = myapp.window()
wait(5)
#necessary code to fill the login textbox and hit submit. No issues, next form comes up
region = myapp.window()
wait(5)
#necessary code to fill the security answers textbox and hit submit. Program crashes
def open_myapp(myapp_path):
myapp = App.open(myapp_path)
wait(5)
if not myapp.window():
popError("open failed")
return False
else:
process_form(myapp)
#program start
open_myapp(myapp_path)
Error dialog - Microsoft .NET Framework:
Unhandled exception has occured in a component in your application. If you click Continue, the application will ignore this error and attempt to continue.
Could not find file 'C:\sikuli\client.ini'
in Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundException: Could not find file 'C:\sikuli\client.ini'.
File name: 'C:\sikuli\client.ini'
---
To debug, I opened the application through sikuli but done everything else manually ( ie filling forms, hit submit etc ) .. again program crashes upon hitting submit button in the security questions form, with the above said error.
Code:
myapp = App.open(app_path)
Pls help, whats going wrong. Thanks
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.