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

Re: Load runner Ajax Tru Client Wait for object not found?

$
0
0

When The loading bar diappears  .... the the loading of the map is complete with your selection ...... there are no new objects that gets loaded. I have used the wait for object in othere cases where some html page gets loaded  and it works fine. But in this case non of the option works.....

 

My primary role is testing  selenium ... I asked to help with tru client scripting .... In seleinium you had oprion for both  wait for element present and wair for element not present

 

I this there should be a easy way to figure out whether a object is present or not present....

 

 

i want to some thing like this

 

var element = getElementByXpath ("/html/body/div[7]/div[4]/div/div/div[2]/div[2]/div[2]/div[3]/form/div[2]/div[3]/table/tbody[2]/tr/td/div/input");  
if (element ){
window.alert("Found " );
} else {
window.alert('not found');
}

function getElementByXpath (path) {
  return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}
 
  

 

but keep getting error  XPathResult not defined..

 

where do I define XPathResult??


Viewing all articles
Browse latest Browse all 12134

Trending Articles



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