webdriverio
Version:
Next-gen browser and mobile automation test framework for Node.js
24 lines • 847 B
TypeScript
/**
*
* Get the value of a `<textarea>`, `<select>` or text `<input>` found by given selector.
* If multiple elements are found via the given selector, an array of values is returned instead.
* For input with checkbox or radio type use isSelected.
*
* <example>
:index.html
<input type="text" value="John Doe" id="username">
:getValue.js
it('should demonstrate the getValue command', async () => {
const inputUser = await $('#username');
const value = await inputUser.getValue();
console.log(value); // outputs: "John Doe"
});
* </example>
*
* @alias element.getValue
* @return {String} requested element(s) value
* @uses protocol/elements, protocol/elementIdProperty
*
*/
export declare function getValue(this: WebdriverIO.Element): Promise<string>;
//# sourceMappingURL=getValue.d.ts.map