Thread

Skip Navigation LinksForums > Rapise Forums > Rapise Issues & Questions > Sometimes when testing IE...

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

Tuesday, March 20, 2012

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
Adam SAdam S
re: Adam S on Tuesday, March 20, 2012
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:

Adam SAdam S
re: Adam S on Tuesday, March 20, 2012
Tuesday, March 20, 2012
Tagged
Statistics
  • Started: 3/20/2012
  • Last Reply: 3/20/2012
  • Replies: 2
  • Views: 615
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.