Skip to content

gf.getAll

gf.getAll(selector: string): Promise<DOMElements>

Section titled “gf.getAll(selector: string): Promise<DOMElements>”

Retrieves all elements matching the specified selector.

  • selector: The CSS selector to match elements against.
  • Returns a promise that resolves to an array of DOMElement instances.
describe('Test script', function () {
it('Test 1', async () => {
const elements = await gf.getAll('.my-elements');
});
});