I’m actually working on a UIPATH Project, I need your help for one Sequence.
The part of my project where I’m struggling is about Click on one logo on a web page, then Click on the same one under, then the same one under and so on even logo exists.
I would like to modify the selector of the click activity, to remove the static idx by a dynamic idx as a variable to automate the process.
I have tried to initialize by Index=1
Then to remove in the Click selector : idx=‘1’ by idx=‘“+Index.ToString+”’ but the selector is not working…
Could you help me about how to pass the variable and its syntax.
You can use Find Children activity to get the no of icons.It will give you an Ienumerable of Uielement then you can loop thorugh it and pass the element inside the click activity.
It still doesn’t work, with the Find Children activity and the for Each in Children (Variable) the Bot still click on the First Logo but not the next one. I share you the XAML file if you agree to have a look on it.
Thanks Create or Update New Container 4.0.xaml (39.2 KB)
Welcome to the Community! You should be able to pass the Index value as a parameter to the selector. From the screenshot above it looks like the quotes before and after are not set correctly.
Instead of "+Index.ToString+" it should be "+Index.ToString+"
You need to use the Expression Editor to ensure it translates correctly.
Have updated the selector in your workflow. Give it and try and let us know how it goes.