element.isHidden
element.isHidden(): Promise<boolean>
Section titled “element.isHidden(): Promise<boolean>”Checks if the element is hidden. An element is considered hidden if:
-
Its
displayproperty is set tonone. -
Its
visibilityproperty is set tohidden. -
Its
opacityproperty is set to0. -
Returns a promise that resolves to
trueif the element is hidden,falseotherwise.
describe('Test script', function () { it('Test 1', async () => { const element = await gf.get('.my-element'); const isHidden = await element.isHidden(); });});