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