I’m exporting few data s from web application into excel sheet,i ll keep the browser opened .
Then reading the excel sheet one by one coming back to browser performing action .
i’m getting exception[Attach Browser ‘UsersResu Page’ : Cannot find the UI element corresponding to this selector].
In the for each loop first time its reading row from excel performing my action in the web application.
After reading second row from excel ,now it throws exception in the browser
Hey @vikumars This seems to be an issue with the selector. Did you check if your selectors are same before each iteration? Make sure your selectors are dynamic to identify the elements everytime.
Hello @vikumars
So what can i understand is you are successfully able to execute for first set of data? So it may be selector are good.
Can you share the functionality like how you are using the excel data? is it you are performing same activity on browser with excel rows? You are again opening browsers? If possible share .xaml.
i’m in a position with not to share .xaml,it will comes under policy violation .
But i can share screenshots for some functionality??
It would be enough for you to help on this??
Following steps i have followed for performing my action
1)Initially i had used web recording for giving URL,user_name,password to login into application and navigate to few menus inside application(shown in image1) .
2)Then am exporting into excel application
4)Now for the first iteration it is changing password successfully.
For the second time it throws exception while synchronizing with browser
looping inside(write line activity)
P0CT/V001(value from excel)
password changed(write line activity)
looping inside(write line activity)
P155(value from excel)
Attach Browser ‘UsersResu Page’ : Cannot find the UI element corresponding to this selector:
26mar18 execution ended in: 00:02:04
@vikumars, Try to change password manually for 2rows And check the selector is same for both rows or not.If it’s different Replace the changing content with ’ * ’ so that it works as a dynamic selector
@vikumars As discussed over the message, the item you are clicking after entering the data has dynamic property, you need to use correct attributes or wildcards for selecting this element.