dusty071 Posted September 22, 2014 Share Posted September 22, 2014 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 Link to comment Share on other sites More sharing options...
Danp2 Posted September 22, 2014 Share Posted September 22, 2014 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. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
dusty071 Posted September 22, 2014 Author Share Posted September 22, 2014 _IEAction($oDiv, "scrollintoview") Thanks for help Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now