Hi,

currently there is no dedicated way to do it. It think that it is a very interesting feature that could be improved but until now it seems that it isn't very used.

The User-Agent header is used to determine which browser should be simulated. The logic for this behavior is:
- default is INTERNET_EXPLORER_6_0
- if User-Agent header specified:
  - if it contains "Gecko" then MOZILLA_1_0
  - else if it contains Netscape then NETSCAPE_6_2_3
  - else INTERNET_EXPLORER_6_0

You can for instance use:

<config ...>
<header name="User-Agent" value="Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111 Firefox/1.5"/>
</config>

Details of functions/properties available depending of the simulated browser can be found in htmlunit's documentation (can't provide a direct link, web site currently doesn't answer).

Marc.

Trent Rossiter wrote:
What is the easiest way to switch the browser compatability? I am interested in switching to the MOZILLA_1_0 BrowserVersion. Is there a simple configuration file that I can use to switch this?

Trent


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to