Display Input Dialog box where user will enter check box label i.e. ‘Checkbox1’, ‘Checkbox2’, or ‘Checkbox3’
based on provided user input, i wanted to select that particular check box; if it’s not already selected. If it’s already selected then don’t perform click operation on that check box.
I tried it using anchor base; however unable to get proper selector so that i get any property of checkbox label and provide the label name as variable into selector.
You can include a value in the selector.
I’m using chrome, so you may need to adjust the first line if you aren’t.
Value:
The reason you can’t select by using the Checkbox1 label is because it isn’t really related to the checkbox at all and it doesn’t have a lot of distinguishing features.
Other than this you could try using one of the click on text activities, but they tend to be less reliable.
Play around with UI Explorer to get a feel for how UiPath sees the webpage.
You may also want to have a look at the Check Activity.
The value you specify in the selector has to be exactly the same as what’s on the website.
The selector i posted was based on this bit of the source code on your example website:
If you use value=checkbox1 in the seletor it will match, but value=Checkbox1 will fail because it’s slightly different.
Thanks for reply. I got it now. You get ‘Value’ attribute when you inspect the element in chrome.
I was under impression that we get all possible attribute in UiPath UI Explore window. but in this case, ‘value’ attribute is not there ui explore.