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

Tuesday, March 20, 2012 2:03:04 PM

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 2:04:15 PM
Avatar
re: inflectra.adam on Tuesday, March 20, 2012 2:03:04 PM

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:

Tuesday, March 20, 2012 2:04:26 PM
Avatar
Statistics
  • Started: Tuesday, March 20, 2012 2:03:04 PM
  • Last Reply: Tuesday, March 20, 2012 2:04:26 PM
  • Replies: 2
  • Views: 689