← Back to team overview

sikuli-driver team mailing list archive

[Question #185846]: how to reassign App following splash screen

 

New question #185846 on Sikuli:
https://answers.launchpad.net/sikuli/+question/185846

The GUI I'm working with starts with a splash screen where the user selects a profile to load. I have this automated with no issues. My problem is when the profile is selected and the GUI is launched, my App instance has no knowledge of the existance of the GUI.  I think it is still linked to the splash screen that opened when I ran the App.open command.

I attempted to do the following to reassign the App instance, but it doesn't appear to have success finding the window and assigning it.

self.guiWin = App.open(filename_FOO)
wait(1)
#click correct profile
#click "Launch"
#splash screen closes, full GUI opens (window title is: FOO version X.Y.Z)
self.guiWin = App("FOO")
self.guiWin.focus()

FYI, I also tried 
self.guiWin = App.focus("FOO")

Neither option allows me to focus and control the GUI after the splash screen. 

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