2

Is it possible to set the document mode and the browser mode, while testing IE9 with Watir? In short could I test my site, in an emulated version of IE browser. Like say IE7 or IE8?

I want to test my site in different versions of IE. I have IE9 installed. Using the developer toolbar I usually switch between different versions. Could the same behavior be replicated using Watir?

1 Answer 1

3

I would suggest that you create several virtual machines. Each one of them has different version of Internet Explorer: 6, 7, 8, 9. That is what I do.

2
  • 1
    That's what we do as well - different version of Safari/Chrome/Firefox/IE on each box.
    – adam reed
    Sep 26, 2011 at 20:05
  • +1 from me also. VM's are cheap and easy and can be reset easily to a known state. Also with the approach you were proposing, are you really testing your site on IExx or are you testing IE9's ability to emulate version xx while displaying your site? If something is wrong, was it your code or IE9? you'd have to always go and verify on the real thing, so why not just test there in the first place Oct 7, 2011 at 23:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.