alertAccept
Accepts the currently displayed alert dialog. Usually, this is equivalent to clicking on the ‘OK’ button in the dialog.
Usage
1 | browser.alertAccept(); |
Example
1 | it('demonstrate the alertAccept command', function () { |
Throws
- RuntimeError: If no alert is present. The seleniumStack.type parameter will equal ‘NoAlertOpenError’.