Css selector

Hi all, when I am trying to click search button in a web page but I am unable to click it because every time the css selector is changing. How I need to achieve this automation.below are the image references.


Hi

Remove the CSS selector, you should avoid using this in your selector as it can break more easily than other elements.

Can you post another screenshot of the right hand side of the Ui Explorer so we can see the selector options.

@Pushpendra_kowthavarapu

Use UiPath dynamic selector capabilities to create selectors that adapt to the changing CSS attributes. You can use wildcards in your selector to match part of the attribute value that remains constant.

If there are other elements on the page with more stable selectors that are close to the search button, you can use those as anchor elements

1 Like

Check which selector is changed and make it dynamic or else use only fuzzy selector don’t use static selector if you are using Modren activity you can see these options.

else do repair it will take automatically. and also if you are using any ID don’t use.

If you are unable to resolve please let me know.

1 Like

Hi,

Try using

<webctrl aaname=‘Search’/>

and check if it’s valid or not.

1 Like

Hey

What are you trying to interact with? A search button?

Try this for now:
Red - UNTICK THE BOX
GREEN - TICK THE BOX

Thanks for the solution brother. May I know how it’s working even without css selector means how it’s approaching the element to click .

Did it work?

If it didn’t you may need to click on some additional properties.

The robot is finding the element based on the selected properties, the 1st element that matches all of the required values it will interact with.

1 Like

@Pushpendra_kowthavarapu You can attempt using a Hotkey (Enter) inside the TypeInto Activity if clicking on the Search button is not a requirement.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.