Is it possible to define an element of a web page by two attributes? For instance, I can find the element by its innertext
Element imagePage = ActiveBrowser.Find.ByContent(pageNumbers[p],FindContentType.InnerText);
Or I can define an element by part of its element id
Element imagePage = ActiveBrowser.Find.ById("p:p")
But can I define it by using both? The elements themselves are recreated every time the program is run so the only constant is the inner text but that is not enough to differentiate it from other elements on the web page, the only way I can think to differentiate the element is by adding another identification method which will use the first part of the element id, in this case "p", that also remains constant and is unique to that specific element. Any help will be greatly appreciated.
Thanks,
Reese
Element imagePage = ActiveBrowser.Find.ByContent(pageNumbers[p],FindContentType.InnerText);
Or I can define an element by part of its element id
Element imagePage = ActiveBrowser.Find.ById("p:p")
But can I define it by using both? The elements themselves are recreated every time the program is run so the only constant is the inner text but that is not enough to differentiate it from other elements on the web page, the only way I can think to differentiate the element is by adding another identification method which will use the first part of the element id, in this case "p", that also remains constant and is unique to that specific element. Any help will be greatly appreciated.
Thanks,
Reese