Skip to content

element.getValue

Retrieves the value of the element if it is an input or textarea.

  • Returns a promise that resolves when the action is complete with the element value.
describe('Test script', function () {
it('Test 1', async () => {
const input = await gf.get('input');
assert.equal(await input.getValue(), 'text');
});
});