But I think, it should be possible to click on element, which is not active at the moment. Right?
Right or wrong, that is suppose is for Ranorex to decide... Are you using the repository or searching for that object at run time? Is the object rooted to the desktop or the main window or is it relative to the current location?
I am coming at it from the approach of defensive coding of my automation scripts. I want them the be as bulletproof as possible and if it requires me to put a single .Activate line in my custom click method, then so be it.
That being said, most of my automation framework code is full of my own custom verification, try/catch blocks, etc... I want the person writing automation code using my framework to have the greatest possibility of success. As we all know, automation code needs to go above and beyond the success path, we need to account for all (or as many as we can determine) failure paths that can possibly happen and dictate how our automation code is to handle that scenario. If you, like me, have a suite of automated tests that can run for more than 12 hours at a stretch, you may want to put as many defensive steps into your automation as possible as well.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...