Html window number changes dynamically

I am newbie and was building a project to fetch data from a web based sap portal When I am capturing the events the htmlwindowname=‘WID1610002076512’ however when I am running the application every time the htmlwindowname gets a new htmlwindowname=‘WID1610002931549’.

image

image

Your valuable feedback would be highly appreciated

Can you use below selector @manjesh_kumar
“<html app=‘chrome.exe’ htmlwindowname=‘WID*’”>".
change the html window name to : htmlwindowname=‘WID*’

1 Like

Hi @manjesh_kumar,

Welcome to the community!

The error occurs because you have not used a Wildcard. A Wildcard as a name suggest can take any value or any range of value. So in your case you know that the number following WID is dynamic so <html app=‘chrome.exe’ htmlwindowname=‘WID*’> can fix the issue (range of values).

Your selector will also be valid if you used:

<html app=‘chrome.exe’ htmlwindowname=‘?ID*’>
Or 
<html app=‘chrome.exe’ htmlwindowname=‘W?D*’>

In short:

  • Asterisk (*) – replaces zero or more characters
  • Question mark (?) – replaces a single character

You can read about use of wildcards here: Selectors with Wildcards (uipath.com)

2 Likes

Thanks a lot that helped :slight_smile: