I have been writing some test cases in PhantomJs and CasperJs. Recently I stumbled on NightmareJs which uses ElectronJs.
I wanted to know if I can automate POST requests (such as below) in NigthmareJs (maybe using goto, but I don't see any specifications for passing in params and changing the method):
PhantomJs code:
page.open(url, 'post', params, function (status) {/*something*/});
And if so can I loop it a couple of times to monitor the time taken.