I have been using webtest for a while disabling JS beacuse of the error that
returns.
Right now I must test some stuff that is being loaded by a js funcition:
1var xhReq;
2var dtDate = new Date();
3var surl = '/ajax/sessioninfo.php?rnd=' + dtDate.getSeconds() + '&slc=' +
language_id + '&nfwk=1';
4
5if (window.XMLHttpRequest)
6 xhReq = new XMLHttpRequest();
7else
8 xhReq = new ActiveXObject("Microsoft.XMLHTTP");
9
10xhReq.open("GET", surl, false);
11xhReq.send(null);
12document.getElementById('my_olx').innerHTML = xhReq.responseText;
But as I have the following step :
ant.enableJavaScript enable:"false"
when I do the invoke step the inner html under "my_olx" is not being
loaded. So I can't test it.
I tried enabling the js and simulating IE7 and FF3 without any success. I
still get the error. I must enable it because I need that inner html to be
loaded.
*does anyone succeed testing web pages that uses js with webtest?*
This is the site I am testing: www.olx.com
Thanks in advance,
Hernan