forked from fhinkel/tryM2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-z.js
31 lines (23 loc) · 1021 Bytes
/
index-z.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var Browser = require('zombie');
var browser = new Browser({debug: false});
browser.visit('http://localhost/~franzi/tryM2/public/index.html', function(e , b) {
console.log(b.errors);
console.log(b.statusCode);
console.log(b.html());
});
//, function(e, b) {
//console.log(b.html());
//});
//Browser.visit('http://localhost/~franzi/tryM2/test.html', function(e, browser, status) {
// console.log(browser.html());
//browser.close();
//});
// Browser.visit('http://habanero.math.cornell.edu:3690', {runScripts: true, waitFor: 1000, maxWait: 2000}, function(e, browser, status) {
//var browser = new Browser({debug: true});
//browser.visit('http://habanero.math.cornell.edu:3690', {debug: true, runScripts: true, waitFor: 1000, maxWait: 2000}, function(e, browser, status) {
//browser.visit('http://habanero.math.cornell.edu:3690', function(e, browser, status) {
//browser.wait(function(e, browser) {
//console.log(browser.html());
//});
//browser.close();
//});