What is best practice to select dynamic selector

Hi All,

What is the best practice for dynamic element selector.
which attributes should i include for stable selector for dynamic element.


Hi @SagarSB

To create a dynamic selector, you need to find a dynamic/variable value in your stable selector.


  1. Find a stable static selector that works for a particular element.
  2. Replace the dynamic/variable value in the selector with a variable.

This is the basic principle of creating variable/dynamic selectors.

I hope it is helpful.


Forum has related posts, please search before posing new topic.

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