0

I am excuting a testsuite, which includes around 160 testcases via IE.

But the execution hangs after sometime. Testcases are simple ones,mostly to check the presence of elements or to get the text of an element.

IE11
IEServerdriver:version 3
Windows 10
2
  • Can you give proper details and paste the code if possible. also if you get any error give that too. – Alok Jan 6 '17 at 11:38
  • Sorry...i Cannot provide u the code..but this is the error i am getting "StaleElementReferenceException: Message: Element is no longer valid" before the execution hangs – VVV Jan 6 '17 at 12:43
2

"StaleElementReferenceException" is throw when the webelement is no longer available(deleted) or modified from the DOM. This can happen due to page or a part of it has refreshed due to AJAX, Javascript, etc.

To handle this exception you will have to re-intialize the webelement for which you are getting the exception.

You can also try to use "try catch" to catch the StaleElementReferenceException.

2
  • thank u...i m using JS in my testcases to hide the navigation bar..is this causing issue here>?? – VVV Jan 6 '17 at 13:59
  • not sure, it could be. unhide it and try to run your code. – Alok Jan 6 '17 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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