I am new to Nightwatch.js and WebDriver Protocol. During reading these documents, I am curious about the difference with .keys()
and .elementIdValue()
.
In Nightwatch API Reference, the definitions are below:
.keys()
: Send a sequence of key strokes to the active element....elementIdValue()
: Scrolls into view the form control element and then sends the provided keys to the element...
They both "keyin" some texts into the specified editable element, so I cannot figure out what the main difference is.