Kanika
10 years agoContributor
How to do scroll in a panel when object spy not able to identify scroll but only identify panel?
I am not able to identy scroll with object spy but I am able to identify panel in which scroll is placed. What all methods are there to scroll within a panel?
- 10 years ago
Hi!
It's a bit strange that listobj.ClickItem(2) does not work for you. It seems that scrollIntoView in this case might be still scrolling when TestComplete is performing ClickItem which causes TC to miss. You can try to put a little delay between the calls (Delay(1000) for instance) and see if it helps.
Another way to perform a scroll within a panel is to use its scrollLeft / scrollTop properties. See HTML DOM scrollTop Property. Be aware that you will be scrolling a content of the panel not the panel itself.
Hope this helps,
UnveN.