Data scarping vs assigning to a string variable

How to assign the text to a string variable where the text has been extracted through Data Scraping. Note. Every time, the text will change.


The scraped text will be always in the datatype string, so no need to assign again to string, pls use the same output result variable as string.


In the Data Scraping Activity Properties panel, assign Output to a string variable.

Karthik Byggari

Thanks! When I called the variable from the message box it displays the below error.
“message”: "Get Text ‘SPAN’: Cannot find the UI element corresponding to this selector: ",


Note: Have changed the aanme attribute as * since that field will change dynamically.

“message”: "Get Text ‘SPAN’: Cannot find the UI element corresponding to this selector: ",
“level”: “Error”,
“logType”: “Default”,
“timeStamp”: “11:35:16”,
“processVersion”: “”,
“jobId”: “ab9afa45-f10f-47ad-bd49-3712b9d8f907”,
“robotName”: “TECH”,
“machineId”: 0,
“fileName”: “Excel_Automation”

@manikvenkatin Its selector issues use uiexporer and try

Have changed the name (attribute name) to wildcard character (aaname = ‘*’). Sill not getting any values in a message box.

@manikvenkatin Is it possible to share the link

Am just practicing an exercise in UIPath with selectors. Unable to get the desired result.

  1. Created an input dialog to search emp number in emp portal
  2. Portal results the employee name
  3. Using data scraping, fetched the employee name (hyperlink text)
  4. When I tried to enter different emp number it displayed the error can’t find the UI element corresponding to this selector:
  5. To rectify the same, have replaced with ‘*’ in the quotes instead of name in aaname attribute
  6. But not successful

Kindly assist.

4.1 Error message is, Cannot find the UI element corresponding to this selector: "open tag webctrl aaname =“Rajesh Kanna” parentid=‘resultsTable’ tag=‘SPAN’ / closed tag

can you indicate the gettext again for the second emp and paste the selector here

Am searching through emp id, it returns only one employee details.

Have data scraped the returned employee name and modified the attribute name with *.

Am unable to retrieve the second employee name and displayed the error which I have mentioned in above post.

Request to assist how to share the link since am just 2 weeks old in UI path.

in your system can you do this:

  1. Search for emp 1 and in the result use a gettext to indicate it
  2. Search for emp 2 and in the result use a gettest to indicate it

You will have 2 get text activities now.
Can you copy the selector from both of them and paste it here?

Only by looking at the selector we can know what to make dynamic

1 Like

Success!! It worked…Thank you.

Great! :slight_smile:
Can you add a comment if you solved it in a different way or mark any one of the above responses as a solution to your issue and close this thread.

1 Like

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