How can I search for a specific string prefix on a webpage where the same prefix appears in multiple places in same webpage window, and click all the links where the colName attribute is either ‘replacement’ or ‘new’?
The process requires scrolling through the page to locate all instances of the specified prefixes. The bot should stop once it reaches the end of the page, indicated by the text “---- Date :”.
List of prefixes to search for in the aaname attribute: DBL, MBN, MSS, ALD, MGU, MBDS, LHV, WTL, NP., IPS, A00, QEV, DTRR, DM, PLH, VEDOC, W371, V999, CAD, DDS, MTC, SAE, ANSI, SWF
For each match:
Check if the colName attribute is ‘replacement’ or ‘new’.
If so, click the highlighted document number to download.
Continue scrolling and repeating the process for other prefixes.
Stop once the text “---- Date :” is found at the bottom of the page.
the structure looks like a tree so i think you will be able to traverse through children nodes.
have you tried “find children” with scope as " FIND_DESCENDANTS" and add a filter to the specifying the attributes required?
it returns a IEnumerable(UiElement) variable which can be looped to,
get the “aaname” attribute and then compare it with you list of prefixes. if it matches then click on the Uielement to download else skip.
This method doesn’t meet my requirements.
Is it possible to extract the HTML content from a webpage using UiPath activities or packages?
I plan to generate selectors to download the required files based on the extracted HTML content using a script.