← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #632939]: Sikuli object identification fails if the browser is not in foreground

 

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

    Status: Open => Answered

Roman Podolyan proposed the following answer:
1) Recently I used 
switchApp(application)  ( http://sikulix-2014.readthedocs.io/en/latest/interaction.html ), on Mac. 
You may want to give it a try. 

2) A few times I used approach not involving AppFocus()

a) Checked if browser window is on foreground searching for some title image
b) If it is not, invoke click on application icon in Taskbar (or Dock or whatever is other system way to bring app to front)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.