Secondly, I’m facing issues in Radio buttons. I have 3 radio buttons, and after checking in excel row it is supposed to tick it accordingly. Ive tried click image, get attributes. But not working. I’m a bit weak at selectors, Can someone give me the solution to work with them.
Secondly, I’m facing issues in Radio buttons. I have 3 radio buttons, and after checking in excel row it is supposed to tick it accordingly. Ive tried click image, get attributes. But not working. I’m a bit weak at selectors, Can someone give me the solution to work with them.
Can you share screenshot of UiExplorer of the radio button, if possible?
Can you check content of row(2) using WriteLine activity, MessageBox etc?
And perhaps you should use UiExplorer. It shows list of proerties (attributes) of the element and we need to use it in GetAttributer activity.( In general, it will be “checked” property)
String comparison is case-sensitive. so you need to write row(2).ToString = "True"
Or row(2).ToString.ToLower = "true" if you want to handle it as case insensitive.
And you can set attribute name in Get Attribute activity as the following image.
In some case, data from excel is automatically converted to internal expression in UiPath, such as DateTime, Boolean etc. If we handle these data type, need to take care its format/expression.
And, sorry I didn’t get the image. Still dont know what to do for radio buttons.
Can you try the following steps?
Put Get Attribute Activty in you workflow
Click “Indicate Screen” and choose radio button which you want to check.
Set “Checked” to Attribute property.
Set boolean variable in Result proerty, to get its result.
For radio button, use click activity. In selector, select aaname and pass like this in aaname selector "aaname=’ “+row(“Status”).ToString+” ’ ". It will click the radio button based on your status value. Thanks.
Ok, Thank you, One last question - So after getting 3 boolean variables as attribute’s result, I need to check if whichever is true, check that radio button? Three separate if conditions?
Basically yes. However if you want to avoid multiple if activity, switch activity might be used as workaround like the following expression, for example.
Btw if I misunderstand your requirement and you want to check radio button, can you try to add Title attribute to your selector? Uiexplorer will help to make it.
Can you check if there is other proper element inside the element to click triangle mark as the following image? If there is, please set it to selector of the activity.
@vignesh.ks
I’m still not able to work it out. If I use click activity on New button, and open its uiexplorer, it says not validated. But green sign comes in edit selector. And after passing "aaname=’ “+row(“Status”).ToString+” ’ " in place of aaname, it again becomes red and not validated.