← Back to team overview

sikuli-driver team mailing list archive

[Question #200374]: How do you change the app focus when taking a screenshot?

 

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

So this is probably a simple issue, but I can't seem to get around it. 

So I want to take a screenshot of something like Firefox, the entire application. 

Im doing this as a wait command. So I want to start firefox, and then wait until it opens for the next command. 

So I'm doing: 

SwitchApp("Firefox.app")
wait(screen shot of full Firefox application)
....

However, when you click Take Screenshot in Sikuli the application focus doesn't change to Firefox. It just hides Sikuli, and if Firefox is the exposed window underneath it appears. But not 'in focus'. 

This is a problem because Firefox looks different when its the focused application (the entire menu bar changes color, the red,yellow,green buttons appear, etc.). Because I can't take a screenshot of the focused-Firefox, the wait command isn't actually recognizing the entire application. 

I'm running Mac OS 10.7. 

Any suggestions? 

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