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