Skip to content

element.isScrollable

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 to auto, scroll.
describe('Test script', function () {
it('Test 1', async () => {
const element = await gf.get('.my-element');
const isScrollable = await element.isScrollable();
});
});