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?
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
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.
accept_alert and dismiss_alert commands are now added.
To be complete for the people arriving here:
acceptAlert()
dismissAlert()
in Selenium protocol
Most helpful comment
To be complete for the people arriving here:
acceptAlert()
dismissAlert()
in Selenium protocol