dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

setValue() fails! #77

Closed izocan closed 10 years ago

izocan commented 10 years ago

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: https://github.com/dalekjs/dalek-internal-actions/issues/11

thanks

thanks.

asciidisco commented 10 years ago

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

mischah commented 10 years ago

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('');
})
asciidisco commented 10 years ago

Fixed im canary.