Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
| WatirMelon
3/17/2014
WatirMelon
A 93% Software Testing Blog by Alister Scott
Menu
I recently read that Microsoft are now on board to officially support Selenium WebDriver from Internet Explorer (IE) 11+
David Burns
@AutomatedTester
Biggest announcement at #WebDriver @W3C meeting today came from WebDriver implementation from @IE 11+
11:48 AM - 26 Feb 2014 65 RETWEETS 16 FAVORITES
Whilst I welcome the news, I try to avoid running WebDriver tests in Internet Explorer completely for the following reasons: Internet Explorer is a very non-testable browser. Whilst everyone agrees testability of your app is paramount, testability of its run-time container, the browser, is equally important. Settings such as security zones, proxies and auto-complete in IE must be manually configured on each machine instead of being programmatically specified by profiles in Firefox and Chrome; and Because IE has historically been so hard to test, WebDrivers support for IE is much less mature and much less stable and efficient than Firefox and Chrome The only way automated UI tests can succeed (and the chances of success arent high to begin with), is if they are fast and consistent. WebDriver against IE is neither (I see it more of a problem with IE than WebDriver). So if you want to use WebDriver, dont test against IE, test against Firefox or Chrome. But, In my role as a consultant, I continually hear managers say that we must run our WebDriver automated tests in Internet Explorer. Theres usually one or two reasons given: 1. Our web app is for internal staff only and our only supported browser is IE (which is usually IE8); and/or 2. Our web app (or the one we pay for) has been specifically coded to work only in IE and therefore its not possible to test in another browser. You need to explain that your WebDriver automated tests arent the only tests youll run against your app. In a corporate environment (such as those who only support IE8), chances are youll have a period of business acceptance testing or user acceptance testing. This will be conducted by users in the browser they use, so this straight away mitigates the risk of only running your automated tests against a nonIE browser. From my experience testing many applications against older versions of IE, the one thing that doesnt work well (and causes web apps to break) is not the HTML but JavaScript support. If your app contains a decent amount of JavaScript you could write some JavaScript tests in a tool like js-test-driver and run these automatically
http://watirmelon.com/2014/03/13/do-you-really-need-to-run-your-webdriver-tests-in-ie/ 1/3
3/17/2014
against older versions of IE automatically. That way you can be assured your JavaScript is working without having to deal with IE/WebDriver issues (and slow running tests). As for applications specifically coded to work in IE. Web standards exist for a reason and in my opinion its crazy to develop a web app that is tied to the implementation of a browser by a single vendor. Microsoft made IE11 purposely report itself to a web server as not being IE so Microsoft can avoid this exact situation happening in the future. Chances are if your app is hard-coded to only work in IE then it wont work in IE11 anyway. If it works in IE11, then itll work in Chrome and Firefox as they all follow web standards, and you can run your WebDriver tests reliably now. I believe youre better off not having any automated UI tests if you theres a mandate in place that you must run them against IE. If you cant automatically test your app in Firefox or Chrome, I believe youre better off spending your time manually testing your app in IE than trying to maintain a test suite that will never be efficient or reliable.
Share this: Print Email Tw itter 18 More
Related
Watir-WebDriver: A detailed introduction Watir, Selenium & WebDriver Are your IE WebDriver tests running slow? Maybe it's the screenshots
Leave a Reply
Enter your comment here...
About
Quote
"Share your knowledge. Its a way to achieve immortality." ~ The Dalai Lama
A 93% Software Testing Blog written by Alister Scott. Follow Everything you see here is licensed under a Creative Commons Attribution 2.5 Australia License.
Archives
Select Month
Quotes
"Then youre trapped in your lovely
http://watirmelon.com/2014/03/13/do-you-really-need-to-run-your-webdriver-tests-in-ie/
2/3
3/17/2014
Answer Will it work? over Does it work? Free yourself from your filters You probably dont need a specification framework Take control of your own career UI automation of vendor delivered products always leads to trouble Waiting in C# WebDriver Checking an element is present in C# WebDriver C# WebDriver extension: Driver.TakeScreenshot
nest, and the things you used to own, they own you." "Crying is right at hand in the smothering dark when you see how everything you can ever..." "If you have the same problem for a long time, maybe its not a problem. Maybe its a..." "They just cant be done that way. If a person is fully possessed, the demon inside of them will not..." "In 1981, LEGOs were simple and gender-neutral, and the creativity of the child produced the message...." "Spurred by Amys death, Ive tried to salvage unwilling victims from the mayhem of the..." "Life is like a wheel. Sooner or later, it always come around to where you started again." "People think that I must be a very strange person. This is not correct. I have the heart of a small..." "Sooner or later everyone sits down to a banquet of consequences." "You have enemies? Good. That means youve stood up for something in life."
http://watirmelon.com/2014/03/13/do-you-really-need-to-run-your-webdriver-tests-in-ie/
3/3