element.isScrollable
element.isScrollable(): Promise<boolean>
Section titled “element.isScrollable(): Promise<boolean>”Checks if the element is scrollable.
- Returns a promise that resolves to
true
if the element is scrollable,false
otherwise. - An element is considered scrollable if it has an
overflow
property set toauto
,scroll
.
describe('Test script', function () { it('Test 1', async () => { const element = await gf.get('.my-element'); const isScrollable = await element.isScrollable(); });});