Forum Discussion
You can use the scrollIntoView() function on the element to make it visible, before interacting with it.
You might need to change the parameters to make it function correctly for your use case.
- Mr_Bro4 years agoFrequent Contributor
If I am able to catch the object, I can use the scrollintoview(true) function and work on it,
But in my case the object itself I'm not aable to find because it is not available in dom untill I do a manual scroll.
Can you please help me
Thanks and regards,
Sathish
- tphillips4 years agoFrequent Contributor
If the object doesn't exist in the DOM until you scroll to it, you can write a loop to scroll the page until the object exists in the DOM.
Here is a link to a previous answer: https://community.smartbear.com/t5/TestComplete-Functional-Web/Keyword-Test-Webpage-Scroll-Down/m-p/108335/highlight/true#M26165
- Mr_Bro4 years agoFrequent Contributor
I wanted to move horizontal scroll and I'm using python script, can you please help me with sample code which I can make use of it please.
Thanks
Related Content
- 5 years ago
- 11 months ago
Recent Discussions
- 10 hours ago
- 7 days ago
- 10 days ago