How do you update the values in an existing form to test update functionality?
Firstly, setValue is misnamed. The documentation states "Sends some text to an element" which is not at all the same as setting (overwriting) the value of an element.
So then there's clearValue, but apparently it doesn't actually work, and the issues people have opened over the years were unceremoniously closed without resolution.
So I try Yan C's suggestion:
.click("input#first_name").clearValue("input#first_name").setValue("input#first_name", "night")
and Andrei Rusu's:
.setValue("input#first_name", [browser.Keys.CONTROL,'a']).setValue("input#first_name", "night")
None of these things are working for me in Nightwatch.js 1.0.11 (beta), using latest Node.js 10.12.0, java 11,28 and latest Chrome 69.
Has anyone managed to get clearValue to work reliably in Nightwatch 1.x?
Thank you, Nathan.