About the selector property

Hello. can you let me know the selector property?

Here’s the automatically-generated selector shown below, which has unreliable components. the web application is known to change the layout and order of elements.

the question is which attribute is stable in that selector?

(I think it’s the app.)

Thank you in advance.

@rudgns99
Most probably id attribute is more stable than other attribute.

Hi,

Can you try to share your selector using preformatted text (the above </> button) or screenshot? (Because < is special character and it will be escaped for security reason in this forum.)

Regards,

Thanks for noticing that. I fixed that.

Hi,

Large idx is not very good, at least.

For now, can you try to use UiExplorer and share its result?
It provides all the attributes we can choose, as the following (right side area).

Regards,

Hello. and then the stable property must be “app” right?

actually, the problem is that just appeared in some of the questions.

I don’t have any UI thing that’s why I request this issue.

(the option menu are “idx,app,css-selector,title”)

Thank you.

HI,

It’s necessary to think separate the first selector element from remaining.

The first selector = top level selector is for to identify which application and tab should be used.
In the above case, it means tab named “ACME System1 …” as title.

Next, we need to choose stable attribute for 2nd (or later) selector.
If there is no stable selector, it’s needed to use anchor.

The above selector seems from ACME System1. i think we can easily get stable attribute.
Can you share which element you try to select and share its result of UiExplorer?

OR

Are you trying to solve exam questions?

Regards,

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