Search the Community
Showing results for tags 'browserx'.
-
Howdy, I would like to find the screen coordinates (x, y) of an element within an IE browser so that I may be able to automate 'scrolling' of the browser window to that particular coordinate. I know I can use the '_IEGetObjByID' and '_IEGetObjByName' commands to return an 'object variable' which I can then use to access the 'browserx' and 'browsery' properties of an element. Question is how do I get an 'object variable' if there is no 'Name' or 'ID' to use with those commands? Not all elements on a page have 'Name' or 'ID' attributes associated with them. For example if I search for the string "49 Albert St" on a page...this may be in the form of various tags (<p>, <h2>, <span>, etc) but have no 'Name' or 'ID' attributes assigned...so how can I obtain the 'object variable' for an element such as this...? I figure if I can get the 'object variable' I should then be able to get the browser coordinates where that element lies on a webpage...then I should hopefully be able to automate the process of scrolling the page down to that location of the element...but how does one go about sourcing the 'object variable' when there are no attributes to 'key' on...? I thank you in advance for any advice. Regards.
- 13 replies
-
- _iegetobjbyid
- _iegetobjbyname
-
(and 2 more)
Tagged with: