Give right ans

How can you improve a selector? Options are:

a) By adding the absolute position of the elements to the selector
b) By using intermediate containers for a better matching of the UI element
c) By replacing the dynamic parts of an attribute with wildcards

@Abhoy_Kumar_Mondal

Option C

Regards

Hi @Abhoy_Kumar_Mondal

Option C

Regards,

Hi @Abhoy_Kumar_Mondal ,
C
regards

Hi @Abhoy_Kumar_Mondal

Option C

By replacing the dynamic parts of an attribute with wildcards

Hi @Abhoy_Kumar_Mondal

Option is c

Hope it helps!!

Hi @Abhoy_Kumar_Mondal

Option C is correct one.

Because we place the wildcards in the specified attributes to be dynamic and to improve the selector.

Hope it helps!!

Hey @Abhoy_Kumar_Mondal ,

Option C : As Wildcards help us to handle changing or variable elements in the dynamic parts of an attribute.

@Abhoy_Kumar_Mondal
By replacing the dynamic parts of an attribute with wildcards

To improve a selector, one of the effective methods is to use wildcards (*) to handle dynamic parts of the attributes. When certain attributes of a UI element change dynamically (e.g., changing IDs, titles, or values), using wildcards allows the selector to match those elements regardless of their changing values.

For example, if the selector for a button is:

<button id='btn123'>Click Me</button>

But the ‘id’ attribute changes dynamically, you can use a wildcard to match it:

<button id='btn*' />