Skip to content

Retrieve Value from Browser #85

Open
@justrhysism

Description

@justrhysism

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions