Forum Discussion
AlexKaras
14 years agoCommunity Hero
Hi Curt,
> 1) the sample script for the VerifyWebObject does not pass the expectedWebObject parameter [...]
I'm not JScript expert, thus have only ideas: a) the empty (default) parameter initializes to the empty object of the corresponding type on the first use (which for the string is an empty string); and b) this is a typo in the code sample.
> [...] suppose I wanted to check on the innerText or namePropStr of the link.
Unchecked guess of top of my head would be to try something like
Links.innerText
To see the actual syntax I would recommend either to find the target object in the Object Browser or (during runtime) to stop the script on the breakpoint and Evaluate Links using Debug | Evaluate command and then press the Inspect button. Then select the relevant property in the grid on the right side and on the top of the window you will see the line of code that can be used in the script.
> 1) the sample script for the VerifyWebObject does not pass the expectedWebObject parameter [...]
I'm not JScript expert, thus have only ideas: a) the empty (default) parameter initializes to the empty object of the corresponding type on the first use (which for the string is an empty string); and b) this is a typo in the code sample.
> [...] suppose I wanted to check on the innerText or namePropStr of the link.
Unchecked guess of top of my head would be to try something like
Links.innerText
To see the actual syntax I would recommend either to find the target object in the Object Browser or (during runtime) to stop the script on the breakpoint and Evaluate Links using Debug | Evaluate command and then press the Inspect button. Then select the relevant property in the grid on the right side and on the top of the window you will see the line of code that can be used in the script.