Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

TC 12.53 JavaScript editor syntax

$
0
0

The following code snippets are from the Session 2 Object Identification TC Webinar  last month and am trying to reproduce the results of each presentation. I am using the just installed 12.53 Community version of LR. All of the code snippets worked in the demo and I have some questions about the syntax, which is often the most difficult problem to resolve using many of the LR protocols (well, at least for me).

1. In the following example why does the method call, evalXPath,  not have to include  TC., as in:TC.evalXpath?

2. Why is the closing bracket ] required without an associated opening bracket? What is its syntactical purpose? Does online help provide syntax rules?

 

t.jpg

3. Can the the single quote block, '" + Args.Context.buttonText + "' in the following example be replaced with escaped double quotes as in: \" + Args.Context.buttonText + \" ?

t.jpg

-Thanks, Terry Horwath


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>