Created
October 17, 2017 21:30
-
-
Save ajtruex/487eb0acdfde381cc1dc594f46dc4a53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Nightmare = require('nightmare') | |
const nightmare = Nightmare({ show: true }) | |
nightmare | |
.click('input#ctl00_MainContent_btnSubmit') | |
.click('input#ctl00_MainContent_btnConfirm') | |
.click('input#Button1') | |
.end() | |
.then(function (result) { | |
console.log(result) | |
}) | |
.catch(function (error) { | |
console.error('Error:', error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment