WebElement ScreenRectangle X & Y both = 0
Posted: Thu Oct 04, 2018 4:05 pm
Wondering if anyone has an idea on how best to get around a random issue we see sometimes (not all that often really, but its annoying)
Using Ranorex 8.2.1 on a Web page, all C# - not a recording.
We use a RepoItemInfo with WaitForExists, followed by CreateAdapter, then EnsureVisible, with a check for Visible = True, and Enabled = True
Provided all of this passes, finally, we call Focus before performing a MoveTo
Funny thing is that sometimes,the MoveTo goes to 0,0 and I see that the screen rectangle is 0,0 for X & Y
Wondering, is there a way to "refresh" the adapter to get updated info when this happens to get proper webelement data so things work properly?
Right now, I'm going to try re-creating the adapter when I see a screen rectangle of 0,0 to see if that resolves the issue.
Using Ranorex 8.2.1 on a Web page, all C# - not a recording.
We use a RepoItemInfo with WaitForExists, followed by CreateAdapter, then EnsureVisible, with a check for Visible = True, and Enabled = True
Provided all of this passes, finally, we call Focus before performing a MoveTo
Funny thing is that sometimes,the MoveTo goes to 0,0 and I see that the screen rectangle is 0,0 for X & Y
Wondering, is there a way to "refresh" the adapter to get updated info when this happens to get proper webelement data so things work properly?
Right now, I'm going to try re-creating the adapter when I see a screen rectangle of 0,0 to see if that resolves the issue.