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
display
property is set tonone
. -
Its
visibility
property is set tohidden
. -
Its
opacity
property is set to0
. -
Returns a promise that resolves to
true
if the element is hidden,false
otherwise.
describe('Test script', function () { it('Test 1', async () => { const element = await gf.get('.my-element'); const isHidden = await element.isHidden(); });});