Question #201557 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/201557

    Status: Open => Answered

RaiMan proposed the following answer:
--- I hope this clarifies my question
not really.

I understand:
In all cases (manually opened and using App.open()) works in that the fields 
are found and filled.

--- My issue is after i click the signin button, then i see the object null 
reference in my aut.exe
So you are saying, that the click() on the sign in button also works in both 
cases.

If this is right, than this means, that the script totally works in both
cases.

Supposing this is true: Does this mean, that the "object null reference"
problem happens in your application aut.exe?

If this is true, then the environment for your app in case App.open()
differs from that when invoking it manually.

App.open() internally uses WinAPI createprocess 
(http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx)
 

with this call in C++:
int result = CreateProcess( NULL, appName, NULL, NULL, FALSE, 0, NULL, NULL, 
&si, &pi);

So you can see nothing special is provided, only the given app name/file
path.

So this might mean, that your app cannot be invoked this way.

you might try to use the Windows start command from inside the script
instead of using App.open():

import os
os.popen("start aut.exe")

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to