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

Accepting Confirm Boxes #3

Closed
chaseconey opened this issue Jan 31, 2014 · 4 comments
Closed

Accepting Confirm Boxes #3

chaseconey opened this issue Jan 31, 2014 · 4 comments

Comments

@chaseconey
Copy link

I don't see any implementation of sending a key or clicking on a confirm() alert anywhere. I may just not know how to do it though - is this possible?

@beatfactor
Copy link
Member

It is possible but not currently implemented. I might add it in future versions.

You can have a look at the protocol commands here in the meantime:
https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/accept_alert
and here:
https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/dismiss_alert

@chaseconey
Copy link
Author

I can honestly say that my knowledge of Selenium is pretty limited, and I will definitely try and understand how it works, but if it isn't too much trouble, could you explain the process of using those commands in the context of Nightwatch?

Some pseudo code would be really awesome too if possible.

Thank you! This project is really awesome.

@beatfactor
Copy link
Member

accept_alert and dismiss_alert commands are now added.

@jehon
Copy link

jehon commented Nov 17, 2015

To be complete for the people arriving here:
acceptAlert()
dismissAlert()
in Selenium protocol

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

No branches or pull requests

3 participants