I am trying to find bottom from any website ex:- ‘ORDER ONLINE’ / ‘Order Here’ bottom . these are basically hyperlink bottoms (images or functional based bottoms) here using := in fuzzy selector it will fetch all bottoms from website & displaying error message as duplicate. (here want to avoid duplicate)
1-Here i want to fetch only one bottom if there are multiple. then
2- want to Click on that bottom in that website as well
in the UiPath StudioX.
pls suggest in Xml format script, it will give better clarity
bellow are reference image & link:-
1-https://order.online/online-ordering/business/parrys-pizzeria--taphouse-33018/en-US?pickup=true
2-https://ziospizzeria.com/
Follow the steps below. If I helped you, please mark as solved.
To avoid identifying duplicate buttons on a website and ensure that only one button is clicked, even when there are multiple buttons with similar text, you can use a dynamic selector and prevent the automation from capturing all duplicate buttons.
Here is a suggested XML script in UiPath. Using a dynamic selector and filtering duplicate buttons:
"ctrl name=‘ORDER ONLINE’ or name=‘Order Here’ idx=‘1’ role=‘link’ />
In this example, the idx=‘1’ attribute ensures that only the first button with the name “ORDER ONLINE” or “Order Here” is selected. If there is more than one button with the same name, it will only catch the first one.