IE is the default therefore you don't have to set any header for that. Cheers, Marc. -- Blog: http://mguillem.wordpress.com
Willi Kuhnis wrote: > Hi, > I still cant use the newest build with HTMLUnit-1.14.jar, > because I still get > > (com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine) - runtimeError: > message=[Can not get field 'ELEMENT_NODE' for > > type: Node] sourceName=[null] line=[0] lineSource=[null] lineOffset=[0] > > I would like to try it with IE simulation (see below) > Question: is the header correctly with the value="Mozilla/4.0" to simulate IE > ? > > > <config > protocol="http" > host="10.60.36.34 <http://10.60.36.34>" > port="80" > autorefresh="false" > showhtmlparseroutput="false" > > saveresponse="true" > resultfile="results.xml" > timeout="2000"> > <!-- > <header name="User-Agent" value="Mozilla/5.0 (Windows; U; Windows NT > 5.1; de; rv:1.8.1.12 <http://1.8.1.12>) Gecko/20080201 Firefox/2.0.0.12"/> --> > > <header name="User-Agent" value="Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT 5.1; SV1; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows > NT 5.1; SV1; http://bsalsa.com) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; > FDM)" /> > > </config> > > > Thanks for help > > Willi > > > ********************** > Hi, > > hmm, Node.ELEMENT_NODE should only be available when simulating Firefox. > > Which browser do you simulate? > > > Cheers, > Marc. > > > Willi Kuhnis wrote: >>/ Hi, > />/ > />/ I updated to the newest Webtest Snapshot build and got HTMLUnit 1.14. > />/ before I worked with HTMLUnit 1.13. > > />/ Now all my <invoke> (which worked before) dont work anymore. > />/ > />/ I get the following error-message: > />/ > />/ [invoke] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > > />/ invoke "invoke url Test FTP server access 1: Enable access" (3/6) > />/ [invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - > />/ getting response for url: http://10.60.36.34/index.asp > > />/ [invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - > />/ Setting password for username: Admin > />/ [invoke] ERROR > />/ (com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine) - > > />/ runtimeError: message=[Can not get field 'ELEMENT_NODE' for > />/ type: Node] sourceName=[null] line=[0] lineSource=[null] lineOffset=[0] > />/ [invoke] ERROR > />/ (com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine) - > > />/ Exception while initializing JavaScript for the page > />/ [invoke] org.mozilla.javascript.EvaluatorException: Can not get > />/ field 'ELEMENT_NODE' for type: Node > />/ > > />/ I went now back to HTMLUnit 1.13 and it works again. But I always > />/ read, that some > />/ problems would be solved with HTMLUnit 1.14, so it would be nice to > update. > />/ > />/ Do you not have the same problems ? What can I do ? > > />/ > />/ > />/ Thanks for help. > />/ > / > > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

