Clicking an element obscured behind other elements
Posted: Thu Jun 18, 2009 10:23 pm
Hi all,
I hope someone here has had experience with this problem. Here's the story:
I have a program that is doing a lot of clicking on text elements in a web form. After a certain point, the list containing these elements gets long and starts to scroll upward. This means that some elements near the top scroll up under objects above, becoming obscured from view.
The problem comes when i have a click command that is meant to click one of the elements which has been obscured. Ranorex "finds" and "clicks" this element, and thinks it has done so successfully. In reality, the element being clicked is behind another object on the form (or even behind some browser buttons!) and the "click" effectively clicks the object which is obscuring the intended target. As you can imagine, this has very unintended and very problematic consequences when Ranorex starts clicking refresh buttons in the host browser window, etc.
Here is a visual representation as best as I can manage in text.
Intent/What Ranorex thinks it's doing:
MOUSE --(click)--> TARGET
Actual result:
MOUSE --(click)--> [OBJECT]TARGET
Essentially, Ranorex doesn't even see the obscuring object (in [ ]) and clicks where the target should be (and actually is, but so is the obscuring object).
I tried a workaround like try clicking, or catch and scroll the list to reveal the target, but Ranorex never fails the try and continues on like nothing happened.
Is there any way that Ranorex knows an element is actually behind another element/object?
Please help. I need to have this solution ready by end of week if at all possible!
Thanks in advance,
Bruce
I hope someone here has had experience with this problem. Here's the story:
I have a program that is doing a lot of clicking on text elements in a web form. After a certain point, the list containing these elements gets long and starts to scroll upward. This means that some elements near the top scroll up under objects above, becoming obscured from view.
The problem comes when i have a click command that is meant to click one of the elements which has been obscured. Ranorex "finds" and "clicks" this element, and thinks it has done so successfully. In reality, the element being clicked is behind another object on the form (or even behind some browser buttons!) and the "click" effectively clicks the object which is obscuring the intended target. As you can imagine, this has very unintended and very problematic consequences when Ranorex starts clicking refresh buttons in the host browser window, etc.
Here is a visual representation as best as I can manage in text.
Intent/What Ranorex thinks it's doing:
MOUSE --(click)--> TARGET
Actual result:
MOUSE --(click)--> [OBJECT]TARGET
Essentially, Ranorex doesn't even see the obscuring object (in [ ]) and clicks where the target should be (and actually is, but so is the obscuring object).
I tried a workaround like try clicking, or catch and scroll the list to reveal the target, but Ranorex never fails the try and continues on like nothing happened.
Is there any way that Ranorex knows an element is actually behind another element/object?
Please help. I need to have this solution ready by end of week if at all possible!
Thanks in advance,
Bruce