please check the image attached, i want to uncheck if the statement contains Dropped. but this can be dynamically change. please help me solve this problem. thanks in advance.
Hi @elt.rd13 ,
You can check by if condition, if text is contain “DROPPED”
Click activity
Regards,
LNV
Hi @elt.rd13
If it was the desktop or web application. You can use Ui element activities.
=> Use for each Ui element, and indicate the elements which stores as a Collection. Output - CurrentElement.
=> Inside for each use get attribute activity and select the aaname or Innertext then it store the
output. Let call the Output Variable name as AttributeVar (Datatype - String).
In Get attribute activity open the properties and pass the CurrentElement in the Input element option.
=> After get attribute activity insert the If condition to check the condition.
- Condition -> AttributeStr.Contains("DROPPED")
=> In then block insert the Check\uncheck activity select the uncheck. In the properties of this activity pass the CurrentElement in the Input element option.
Check the below image for better understanding:
Hope it helps!!
Hello @elt.rd13
- For Each Loop: Loop through the list of elements that you want to process.
- Check Statement: Within the loop, extract the statement text from each element.
- Check for “Dropped”: Use an If condition to check if the statement contains the word “Dropped”.
- Uncheck if Condition is Met: If the condition is true, use UiPath activities to uncheck the checkbox associated with that element.
Thanks & Cheers!!!
Hello, thanks for your reply. I alredy tried this method and Now I can figure out which statements contains “Dropped” , But the problem now is the selecor, it is not dynamci to identify the location of the checkbox. Can you please help me to find a solution for this problem. Thank you