I'm trying to emulate MSIE 5, which I did with the following statement:
final WebClient webClient = new WebClient(new BrowserVersion( "Microsoft
Internet Explorer", "4.0 (compatible; MSIE 5.5; Windows NT 5.0; YComp
5.0.2.6)", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; YComp
5.0.2.6)", "1.2" ));
But my site still gives me an error:
1) testAddSelectionCode(TestAddSelectionCodesHtmlUnit)EcmaError:
lineNumber=[45] column=[3] lineSource=[-->] name=[SyntaxError]
sourceName=[/QRSGUI/Login/browserCheckClient.js] message=[syntax error]
errorObject=[SyntaxError: syntax error]
com.gargoylesoftware.htmlunit.ScriptException: syntax error
The Javascript seems to work fine outside of HtmlUnit. Also, in HttpUnit,
I'm able to pass the browser check with the following line:
webConversation.getClientProperties().setApplicationID("Netscape", "msie",
"4");
Any suggestions on how to emulate the HttpUnit line in HtmlUnit? TIA.
===========================
David M. Goudreau
Senior Test Automation Engineer
dgo...@qr...
QRS Corporation
x14742
|