Hi All, Here i want to click on the BOLD TEXT ex([ Internet ]) dynamically in a desktop application. Please find the attached screenshot for your reference.
Can someone suggest how to solve this in UiPath, I tried with Click, Click image, Get attribute, Get text, Get full text and some other activities also. But i am unable to give dynamic selector.
NOTE- when i am trying to do any action(Click, get text, image exist, Get attribute, get full text, etc…) in the particular area (ex - given screenshot area) in the application it is taking same selector. it is varying IDX number only.
Try using a FIND CHILDREN activity and click on the text you want
Clicking on characters that are bold in specific is not possible I believe
Rather if we know the name which we want to click then it’s possible with either Click text or with find children
Hi Palaniyappan,
Thanks for your response, But here the text which we want to click is dynamic only. it is not fixed. it will vary for each iteration.
Thank you.
Let’s use find children activity and get the descendants
Use a for each activity and pass the output variable from find children and in for each activity change the type argument as UiPath.Core.UiElement in the property panel
—inside the loop use GET ATTRIBUTE activity where pass the variable item.ToString to the property Element in the property panel of get attribute activity
—now in the get attribute activity we can mention as “tag” and get the output with a variable of type string named str_output
Then use a IF activity inside the same for each loop and see what is the value of that tag
Either it should be “H1” or “b”
So set the condition like this
Str_output.ToString.ToUpper.Contains(“H1”) or Str_output.ToString.ToUpper.Contains(“B”)
If true it goes to then block where use a CLICK TEXT activity and pass the str_output as input