Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
awesome
var assert = require('assert')
, jellyfish = require('jellyfish');
var browser = jellyfish.createWebdriver();
// browser.opts.browserName = "iexplore";
// browser.opts.version = "9";
browser.on('result', function(res) {
console.log(browser.name + ' : '+browser.tid + ' - \x1b[33m%s\x1b[0m', JSON.stringify(res));
});
browser.go("http://www.wikipedia.com",
function() {
browser.js("document.title")
.js("document.getElementById(\'searchInput\').value = \'test\'")
.js("document.getElementById(\'searchInput\').value")
.js("document.getElementsByName(\'go\')[0].click()")
.jsfile("../stub/example_file.js", function(o) {
browser.stop(function() {
setTimeout(process.exit, 2000);
});
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.