Skip to content

element.isFocused

Checks if the element is focused.

  • Returns a promise that resolves to true if the element is focused, otherwise false.
describe('Test script', function () {
it('Test 1', async () => {
const element = await gf.get('.my-element');
assert.equal(await element.isFocused(), true);
});
});