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