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’.
Your valuable feedback would be highly appreciated
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*’>