dalekjs/dalek

setValue() fails!

Closed this issue · 3 comments

Hey dudes,

I am using following code:

'Fill form': function (test) {
test
.open('http://localhost:8000')
.setValue('#inputUser', 'blub')
.setValue('#inputPwd', 'blub')
.done();
}

My code above is resulted with: setValue is cancelled with { '0': undefined }.

Same issue here: dalekjs/dalek-internal-actions#11

thanks

thanks.

Dfinitly a bug. {'0': undefined} occurs when the method can't be found.

Ran into this one yesterday while checking out DalekJS.
My workaround was using the execute() method which executes a JavaScript function within the browser context.

So if you are using jQuery on the page you’re running the tests it is as simple as:

.execute(function () {
    $('#selector').val('');
})

Fixed im canary.