Closed Bug 989370 Opened 10 years ago Closed 10 years ago

Have Stale Element exception explain why it is a stale element reference

Categories

(Remote Protocol :: Marionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla31

People

(Reporter: automatedtester, Assigned: automatedtester)

References

Details

Attachments

(1 file, 1 obsolete file)

"StaleElementException: StaleElementException: Stale element reference"


needs to be more user friendly
Blocks: 976145
Assignee: nobody → dburns
Status: NEW → ASSIGNED
Comment on attachment 8398802 [details] [diff] [review]
Update Marionette Stale Element Reference exception to give a meaningful explanation

Review of attachment 8398802 [details] [diff] [review]:
-----------------------------------------------------------------

::: testing/marionette/marionette-elements.js
@@ +119,5 @@
>      if (!el ||
>          !(XPCNativeWrapper(el).ownerDocument == wrappedWin.document) ||
>          (XPCNativeWrapper(el).compareDocumentPosition(wrappedWin.document.documentElement) &
>           DOCUMENT_POSITION_DISCONNECTED)) {
> +      throw new ElementException("The element reference appears to be stale. Either the element " +

s/appears to be/is ?
Attachment #8398802 - Flags: review?(jgriffin) → review+
Attachment #8398802 - Attachment is obsolete: true
Comment on attachment 8399598 [details] [diff] [review]
Update Marionette Stale Element Reference exception to give a meaningful explanation

Review of attachment 8399598 [details] [diff] [review]:
-----------------------------------------------------------------

carrying on :jgriffin r+ after nit
Attachment #8399598 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/f035bcc3dc0e
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: