I am working on TruClientIE protocol version 12.02. Am capturing visible text from the application screen using "Evaludate JS on Object" funtion.
Steps to Capture Visible Text
1. Drag out “Evaluate JS on Object” from the Toolbox
2. Click on “ Click on Choose an object” and highlight the object wanted
4. In the “Argument” section of the step, In the property box select “Visible Text” and in the Variable box type: “VisibleText”
But getting below error message on above validation steps
Why “VisibleText” is undefined? How and where to define it ?
Issue resolved -
You are doing everything right.
Are you sure the element you are trying to capture text from has text in it? Can you change the property from Visible Text to "All Text" or "Inner HTML" and try again?
BTW: not that I think it is relevant, but which patch level and which IE level are you using? It is recommended installing the latest patch with 12.02 when it comes to TruClient IE.
Thanks Shlomi. I tried the same steps on Version 11.52 and found it working as expected.
I see below difference b/w 11.52 and 12.02
V11.52= Arguments Property are enclosed by double quotes like "Visible Text", "All Text", "Inner HTML" whereas in case of
V12.02 or higher = Aguments Property are not enclosed by double quotes. They are shown as it is - Visible Text, All Text, Inner HTML.
I tried to put double quotes like "Visible Text", but getting step error stating 'Property': The specified value "Visible Text" is not in the set of valid entities. (["Visible Text","All Text", "Inner HTML"])
Issue resolved -
Glad to see you solved that. Good job.
I completely forgot about it, i am already used to it.