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.

Regards,
Sagar.

Hi @SagarSB

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

Steps:

  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.

4 Likes

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.