Sometimes when testing IE using Rapise we get a slow script warning

Tuesday, March 20, 2012
Avatar

Sometimes when running a test script on older versions of IE you will see the error message: "A script on this page is causing Internet Explorer to run slowly".

2 Replies
Tuesday, March 20, 2012
Avatar
re: inflectra.david Tuesday, March 20, 2012

The problem is usually due to complex XPATH expressions causing IE to run more slowly. Chrome and FF have native support for XPATH, that is why all queries work very fast. In IE we have to use XPATH emulation library. It works good for "short" queries such as:
//div[@id='123'] because @id's are unique and work quick
but it may be quite slow for
//div[contains(text(),'123'] - because this implies more deep search through all elements. We recommend looking at the XPATHs used because this may be primary way to speed things up.

Also you can disable the slow script warning in IE by following these steps:

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, March 20, 2012
  • Last Reply: Tuesday, March 20, 2012
  • Replies: 2
  • Views: 6398