I have a test that validates the text in the footer of a web page. At the time the test is run in Chrome, there are two browser tabs open. The text to be validated is in the open / active browser tab. However, when I run the test, Ranorex tries to validate the text in the footer of the inactive browser window and hence the test fails.

How can I ensure the test attempts to validate the text in the correct / active browser tab?

Thanks Dan. I have set the "Use Ensure Visible" property of the item I am trying to validate, to "True" and the test still fails, i.e. the test still gets the text from the footer of the inactive tab.

Is that what you asked me?

Thanks again!

Edit
I have added a test step to check that the repository item is visible. That test step passes.

Plus, I re-recorded the step to validate the text, with the browser tab open. Even, when I run the text validation step, immediately after recording it, the test step still fails (because it is reading the text value from the inactive tab.