Passing value to innerText thru an argument

Hi Folks,

Is it possible to pass value to innerText as an argument to define the selector?


innerText is a web element attribute. Any automation tool is supposed to perform UI interaction on web element not change its attribute which defines it… Any ways if you want to do it you can do it via Java Script

Amit Anand

Hi Amit,

What I meant was to pass a value to “innerText” while defining a selector. My bad that I confused you. I could only type\hardcode a value and not fetch it from an argument.