How to store a selector content in a variable?

in order to click on a button which changes it, selector, dynamically I would like to know how the selector change. so to achieve that I would like to copy the content of the selector and display it using the message box. can anyone please tell me how to get and store the content of selector in a variable???


Use FindElement activity indicating the same button and define the out element variable say, ‘element’
Then use a Message box or Write line and in that use - element.Selector.ToString


awesome…thank you…it worked…

1 Like

Perfect :slight_smile:

[please mark solution and close thread]