Open
Description
This is a feature request. Similar to this on StackOverflow http://stackoverflow.com/questions/22160407/dalekjs-retrieve-value-from-browser
I would like to be able to do something like this:
// Non-working example
module.exports = {
'My Test': function(test) {
var foo;
test
.open('http://localhost/mysite')
.execute(function(){
foo = document.getElementById('bar');
})
.assert.text('#myField').is(foo)
.done();
}
}
I have a use case where I actually need to go to a new page in between, which is why the work around listed on SO isn't suitable.