in Internet Explorer, I can find object by the uniqueID property like: oleObj := Pg.FindChild('uniqueID', domObj.uniqueID, 1000); but this doesn't work in FireFox.
In my web testing, I have several hyperlinks have almost same properties the only difference of them is the position in the page(the suggestions in TP7 help doesn't work). when I get its Dom object, It's looks impossible to differentiate. does anybody suggest if there's a good way to unique identify it's Ole object, sample code will be better. thanks.
Do you really need to click a specific link? If there are no differences between the two links in their URL and event handlers, there should be no difference in the resulting behavior of your browser. If the links have different text, you can use the innerText (textContent in Firefox) property to identify them. If the links have the same text but different URLs, you can try identifying the needed link by its href property. Note that you can identify web page elements using any properties (such as href, innerText, innerHTML, value, etc.) via the FindChild method (see the "FindChild Method" help topic for more information). If none of the suggestions help, I would appreciate it a lot if you provide me with a sample web page which contains the problematic links so I can suggest another approach.