Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Re: VUGen Ajax TruClient Evaluate JS on Object

$
0
0

It is quite likely that the object you are evaluating just does not have a 'value'.

 

Try using this in theTruClient arguments editor for the "Evaluate JS on Object" to find out:

 

var typeOBJ = typeof object;
window.alert('type is' + typeOBJ + 'id is ' + object.id + ' name is ' + object.name +  ' innerHtml is ' + object.innerHTML);

 

Also, I find Firebug + FirePath to be invaluable.   Use Firepath for example to get this XPath

 

.//*[@id='FORMLOGINid']

 

Then use the Firebug console to get the object

 

var element = document.evaluate( ".//*[@id='FORMLOGINid']" ,document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ).singleNodeValue;

 

then look at the contents, for example element.id is "FORMLOGINid" 

 

Hope this helps ...


Viewing all articles
Browse latest Browse all 12134

Trending Articles



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