Dynamic selector in modern with a variable

Can you please provide an example of using dynamic selectors in Modern Targer identification methods?

Thank you,

Hi @A_Learner

It is the same idea, just take the element, and then you can right click and select create variable, put the name of the variable you want and also make sure to check the override value

Regards

1 Like

It works exactly the same.

"<webctrl aaname='John' />" becomes "<webctrl aaname='{{nameVariable}}' />"

I find myself often just doing it manually because I’m using rows, arrays, etc.

"<webctrl aaname='John' />" becomes "<webctrl aaname='" + CurrentRow("name").ToString + "' />"

or

String.Format("<webctrl aaname='{0}' />",CurrentRow("name").ToString)

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