Sign in to follow this  
Followers 0
dusty071

Scrolling IE object into view

3 posts in this topic

Hi, i ran into a problem where the object that im Mouseclicking in IE is sometimes out of view, further down the page or so. Before you tell me that i should use _IE functions to click that object please note that i tried that and the page doesnt allow it, it needs to be mouseclicked.

So im looking for a way to scroll that object into view before clicking it. I was thinking of using _IEPropertyGet($oDiv, "screeny") to get the position of the object, then somehow scrolling with $oIE.document.parentwindow.scroll(0,0) so that it will be in the "middle" of the page, lets say y>100 and y<850 for me. But im not sure how to set up the scroll relative to the object.

Help much appreciated. Thanks

Share this post


Link to post
Share on other sites



 

Before you tell me that i should use _IE functions to click that object please note that i tried that and the page doesnt allow it, it needs to be mouseclicked.

What site are you attempting to interact with? Usually there's a valid reason when the developer blocks scripting of their site.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0