We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6925dcb commit 7bbb88eCopy full SHA for 7bbb88e
Readme.md
@@ -15,7 +15,11 @@ var Nightmare = require('nightmare');
15
new Nightmare()
16
.goto('https://google.com')
17
.type('input#gbqfq', 'github nightmare')
18
- .click('button#gbqfba');
+ .click('button#gbqfba')
19
+ .run(function(err, nightmare) {
20
+ if (err) return fn(err);
21
+ fn();
22
+ });
23
```
24
25
Or, here's how you might automate a nicely abstracted login + task on Swiftly:
@@ -47,6 +51,9 @@ The available options are:
47
51
#### .goto(url)
48
52
Load the page at `url`.
49
53
54
+#### .goBack()
55
+Go back to the previous page.
56
+
50
57
#### .refresh()
58
Refresh the current page.
59
0 commit comments