Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I have a test automation suite setup using Selenium and RemoteWebDriver that runs against IE7/8/9/10 and FF10/20/24. The suite takes an average of an hour to complete on each browser except IE9 which takes just over 7 hours.

What could cause this performance hit against IE9 specifically?

share|improve this question

1 Answer 1

If you're using xpath selectors that might be the culprit and you could try converting to CSS selectors instead. I understand that xpath engines are different between browsers, while CSS is native which makes it more efficient. Here's a link of a Sauce Labs blog post with more details on CSS vs xpath:

http://sauceio.com/index.php/2011/05/why-css-locators-are-the-way-to-go-vs-xpath/

Check out the table in the blog post, there's a big difference in performance speed between CSS and xpath in IE.

share|improve this answer
    
Thanks, I will take a look. –  Scott Helme Oct 2 '13 at 14:25
    
"XPath engines are different between browsers, while CSS is native". Doesn't that mean that CSS engines are different between browsers as well? –  dzieciou Oct 3 '13 at 4:36
    
You're right, to clarify what I mean by "native" is that I understand that each browser has their own CSS engine built in. While for xpath IE does not have a built in xpath engine and instead uses a javascript implementation. –  Francis Oct 3 '13 at 5:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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