Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send alert text #30897

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AutomatedTester
Copy link
Contributor

When sending text to an alert modal an InvalidElementStateException should be thrown. Currently this does not happen in Firefox, haven't tested in Chrome.

The UA should raise a InvalidElementStateException when text is
sent to an Alert modal
@juliandescottes
Copy link
Contributor

juliandescottes commented Sep 21, 2021

As mentioned on https://bugzilla.mozilla.org/show_bug.cgi?id=1731795, I think trying to use send alert text with an alert or a confirm should throw ElementNotInteractableError and not InvalidElementStateException. https://www.w3.org/TR/webdriver/#send-alert-text

This works fine on Firefox after updating the test to expect ElementNotInteractableError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants