As I observe, the web system I am working on has parts of its pages, may it be anchors/links, buttons, etc. dynamically changes in terms of XPath … for example:
… causing failure to be detected by OpenRPA, unless all those XPaths are defined in the codes, and have to be checked each one if element is present or not.
what xpath was failing ? and was it failing with an error or just not finding anything ?
it’s important the xpath returns the ELEMENT, if you “select” a property, then that will fail in OpenRPA, since the OpenRPA chrome extension only supports parsing elements.
Valid
//div[contains(@class, 'active')]
Not valid (valid XPath, but the extension does not understand it)
I just realized, those xpaths I create, say, //div[contains(@class, ‘bds-avatar–initials’)] returns many elements instead of a single one, causing the issue. But when I make sure only a single element returns out of the xpath I create, then I successfully have OpenRPA identify the element.