Nightwatch: clearValue is not clearing the value

Created on 27 Oct 2015  路  4Comments  路  Source: nightwatchjs/nightwatch

Hi, i am trying to clear input on firefox.
When:
module.exports = {
elements: {
discountPercent: { selector: '[name="percent"]' },
},

Inside the test.
this.clearValue('@discountPercent');
this.setValue('@discountPercent', percent);

The input is not cleared and the number is just added.
I tried to use CTRL + A ( client.keys([client.Keys.CONTROL, "a"])
But it still doesn't work.

Most helpful comment

+1 on the issue here, doesn't seem to clear the value, but the test continues as if it does.

All 4 comments

See #504.

You reference #504, but there still is no solution to it. Can we reopen this as it is still an issue?

+1 on the issue here, doesn't seem to clear the value, but the test continues as if it does.

another work around is to use delete key.
client.keys(deleteKey)
deleteKey :'uE017',

Was this page helpful?
0 / 5 - 0 ratings