Skip to content

Commit 7bbb88e

Browse files
committed
updated readme
1 parent 6925dcb commit 7bbb88e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ var Nightmare = require('nightmare');
1515
new Nightmare()
1616
.goto('https://google.com')
1717
.type('input#gbqfq', 'github nightmare')
18-
.click('button#gbqfba');
18+
.click('button#gbqfba')
19+
.run(function(err, nightmare) {
20+
if (err) return fn(err);
21+
fn();
22+
});
1923
```
2024

2125
Or, here's how you might automate a nicely abstracted login + task on Swiftly:
@@ -47,6 +51,9 @@ The available options are:
4751
#### .goto(url)
4852
Load the page at `url`.
4953

54+
#### .goBack()
55+
Go back to the previous page.
56+
5057
#### .refresh()
5158
Refresh the current page.
5259

0 commit comments

Comments
 (0)