element.getValue
element.getValue(): Promise<void>
Section titled “element.getValue(): Promise<void>”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'); });});