The Contact Information is dynamic. The Ui Element Email andTelephone numbers are not present everytime.
I have tried using Get Text and Get Attribute with Element exists and with regex. Address output is one string “KontaktdatenKontaktdatenGeschäftlichAdresseLake View 7740593 AbcdXyz_Tm, DeutschlandE-Mailrs_19@t_ine.deMobil+1117123456Privat”
What is the attribute you are providing in the Get Attribute Activity?
Also, if the output is in a string then, string manipulation techniques can be applied to extract the required information.
e.g., for extracting email you can use Matches activity in UiPath and there is inbuilt regex for emails in it.
and the phone number always begins with + sign
pin code always have fixed number of digits.
Can you help us with what holds what like which is the address part, pin part and even others
And would like to clarify whether the order will same and will all values be provided
in some retrieval cases getting text from webpage will lose spaces, linebreaks (from br,p,div…).
In such scenario getting the info from the inner/outer html attribute and doing the parsing with the help of XML Api methods /LINQ for XML can result to better extractions.
May we ask you to share some more details to the address html element, e.g. screenshot from F12/Webtools? Thanks
please give us an expanded screenshot, that we can rely to more details (will see the structure and the text content). But in general it looks good to apply this strategy of extraction. We did sucessfully in the past in production projects and it was working reliable.
perfect
so we do see the identifiers from the data-qa attribute and can use it for the adress parsing.
In case of you are not familiar with XML extractio / retrieval just send me some samples as text and I will so some prototype implementation for you