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