I am working on Appium for an android device. So here I am trying to select a radio button -say OneWay in Spice Jet for booking a flight and using the xpath, but I am getting issue's as follows:

  1. "org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Driver info: io.appium.java_client.android.AndroidDriver"

  2. "TypeError: Failed to execute 'createNSResolver' on 'Document': parameter 1 is not of type 'Node'. "

  • The first issue is resolved and it is due to synchronization problem but the issue 2 as it was fixed in the latest appium.
    – Bunny
    Aug 20, 2015 at 11:06
  • The bug is still open. Are you sure it's been addressed? Aug 21, 2015 at 4:19
  • Ok but in my case this issue is not replicating now
    – Bunny
    Aug 21, 2015 at 6:40

1 Answer 1


Quoting the Selenium docs

A stale element reference exception is thrown in one of two cases, the first being more common than the second:

The element has been deleted entirely.

The element is no longer attached to the DOM

In you case, please check if the element you're trying to find is available or not available on DOM.

The second issue is a current issue in Appium- see here!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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