I need to click on the + symbol based on the First name of the user. For example if the user’s First Name starts with A I need to click on the + symbol near “A” so that it will expand the user list for A, then I need to click on the user’s name if available. please help me on how can I achieve this.
Then you can first get the first letter of the user name and assign it to a string variable like this: varUserChar=varUserName.Substring(0,1).ToUpper
Now you replace the ‘A’ in the selector with this variable like this: <webctrl id='{varUserChar}' tag='DIV' />
Do this for step 1 and after we see how to click in the name.
Hi Bcorrea its not related to letter, the + symbol which is near the letter. If the letter I is not available in the list it will not have the + symbol too.
Try to use Find Children Activity on the whole table, try to use different SCOPE present in properties, if it works it will give you the whole selector and then any activity you want.
Find Children (enumberable of UiElement)
For each (uiElement)- Inside This Use Get Text with the Element set as for each variable.
Check this.