Extract web element

Hi, can someone help me how to extract the below data . I need to only extract the values of ID , name , country. Below is the image reference.

Hi @Pushpendra_kowthavarapu

Use the use application/browser activity and within that activity use the get text activity and save them into each get text activity as shown below




Regards

Hi @Pushpendra_kowthavarapu ,
If you only want these two values, you can use GetText

If there are many similar sets of values, use a data extract table

Can you provide the website address?
regards,

@Pushpendra_kowthavarapu

once you came to Client Information Page
*Use gettext activity and indicate on the required text store it as out_gettext
*by using regex get the required text from the out-gettext
assign:

ClientId=System.Text.RegularExpressions.Regex.Match(out_gettxt,“(?<=Client ID:).*”).Value.Trim

ClientName=System.Text.RegularExpressions.Regex.Match(out_gettxt,“(?<=Client Name:).*”).Value.Trim

ClientCountry=System.Text.RegularExpressions.Regex.Match(out_gettxt,“(?<=Client Country:).*”).Value.Trim

Below had attached the image for further reference

Cheers!!

1 Like

Thanks for the reply brother. Where can we learn these regular expressions.

@Pushpendra_kowthavarapu

check with this link

Cheers!!

1 Like

Hi @vrdabberu , It is able to extract the text. But when i tried to see the output. It’s repeating the same text whatever it extracted for the first time. I can’t able see the latest extracted data.

Done Same , But it’s throwing me an error that Can not assign ‘System.Text.RegularExpressions.Regex.Match(Client_INfo,“(?<=Client ID:).*”).Value.Trim’ to ‘Client_ID’.

@Pushpendra_kowthavarapu
can you share screenshot of error and assign activity



In the bove expression Client_INfo is the output variable.

@Pushpendra_kowthavarapu

please check the .xmal file

Acme.zip (3.8 KB)

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.