What is best practice to select dynamic selector

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