This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25748 - 15.1 - Alerts#getText should raise an error if there is no alert
Summary: 15.1 - Alerts#getText should raise an error if there is no alert
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20860
  Show dependency treegraph
 
Reported: 2014-05-16 21:42 UTC by Andrey Botalov
Modified: 2014-05-16 23:16 UTC (History)
3 users (show)

See Also:


Attachments

Description Andrey Botalov 2014-05-16 21:42:08 UTC
Documentation for "getText" doesn't say "If no alert is present a no such alert error MUST be raised."

Also it's said:
> This will return the text that is currently in the modal.

But it's said "Show the given message to the user.", not "text" in the HTML5 spec(http://www.w3.org/TR/html51/webappapis.html#dom-alert) so I think it would be better to say:

> This will return the message shown in the modal. If no alert is present a no such alert error MUST be raised.
Comment 1 seva 2014-05-16 21:58:42 UTC
... with a specific description of what kind of error and/or a reference to #status-codes section.
Comment 2 David Burns :automatedtester 2014-05-16 23:16:18 UTC
landed in https://dvcs.w3.org/hg/webdriver/rev/279319c8a6f1