Validating Selctors

Hi there,

I am using a series of “click” activities for a project however each click action fails. Each time, the selector asks to be validated. I will run this, it works and then the selectors need validating before. This is also the case when i use the “recording” function.

Any help to find a solution would be appreciated, please include step by step screenshots where possible as I am just learning. :grinning:

image

More info :slight_smile:

From the screenshot i can see that the selector for click activity is not validated because the selector is not able to identify the element that needs to clicked.
Open Ui explorer and edit the selector to make it unique.
More details about selectors can be found below-

It looks like your selector is unstable that is why it needs refreshing each time the page loads.

You should remove that parent ID from the selector and just use the other elements. That should be enough to work on that page (I’ve just tested it and it works for me)

When you click the element, try selecting the smaller box around the word Rangers and you will get a better selector

Hi Andy @AndyD ,

Apologies if this is an obvious question, which one is the parent ID in this case?

Again, I appreciate the help :slight_smile:

Marina
4

Hi @Neethu_Kumar,

I have tried repairing and indicating the element however it breaks as soon as I have tested it.

Marina

This one doesn’t have parent ID attributes and is a stable selector as it doesn’t contain a randomly changing string like the Rangers example.

This one will work in all circumstances

@AndyD If you have a look at the screenshot below, you will see my issue. It appears to be stable once I repair the element. Once I have tested it, it reverts back to being invalid.5

Which page are you clicking from? The selector above will only be valid from the Celtic page. Try replacing Celtic with * in the title variable and see if that resolves the issue