Hello everyone,
I have a scenario where i have to check is element in webpage exists or not, if exits then only send shortcut key.
For example: I have to sent shortcut key on webpage if text “ABCT” is exists, the main concerned is “ABCT” text is more than 50 words which doesn’t matters to me, only thing that is matters is the keyword “ABCT” text is on webpage or not.
Could you show us sample structure of the webpage?
if that text “ABCT” position is fixed, you can use activity Get Text/ Get Full text/ Element Exist / Check App State.
if text “ABCT” not fixed, you can try to scraping all data from wepage and use Regex or other method to check is “ABCT” text exist or not.
USe Element Exist First then it return a boolean pass it to IF in case it true use short key or true side execution other then goes to false side execution which you want
Hope this will resolve your problem still not pls let me know
You can use an anchor, so first map the first element, then search another element that will not change, it could be a title, header, etc, and select it as anchor, you would see green element as the element you want, and blue element as the anchor element