Skip to content

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 true if the element is scrollable, false otherwise.
  • An element is considered scrollable if it has an overflow property set to auto or scroll.
describe('Test script', function () {
it('Test 1', async () => {
const isScrollable = await gf.isScrollable('.my-element');
});
});