Bring Insight web object that is off screen into view with LeanFT
Question ID: 108446
1
0

We have created an Insight object to identify an image on our web page. The problem is, the object is off the screen at a lower part of the web page and LeanFT can’t find it. We need to click on the Insight web object that is off the screen. I have not been able to find a `.MakeObjVisible` (like we used in UFT) or `.ScrollIntoView` (like you can use in C# on some objects) that works in LeanFT.

Marked as spam
Posted by (Questions: 387, Answers: 66)
Asked on June 13, 2018 7:03 pm
78 views
Answers (1)
1
Private answer

I have experienced a similar issue. I found that if you use the `Keyboard.PressKey(209)` method, you can send a Page Down command (209 is the PressKey code for PgDn. You can find other key codes at [this link][1]). This will scroll the web page down. Use it more than once if necessary to bring the object into view.

I am still working on finding a better solution to this issue and if I find one, I will add a comment.

[1]:https://softwaresupport.softwaregrp.com/group/softwaresupport/search-result/-/facetsearch/document/KM1194127

Marked as spam
Posted by (Questions: 17, Answers: 807)
Answered on June 13, 2018 7:04 pm
0
That is a good workaround. If we find a better solution, we'll comment as well.
( at June 13, 2018 7:06 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top