Skip to content

gf.get

gf.get(selector: string): Promise<DOMElement>

Section titled “gf.get(selector: string): Promise<DOMElement>”

Retrieves a DOM element based on the provided selector.

  • selector: The CSS selector to query the DOM element.
  • Returns a promise that resolves to the DOMElement instance.
describe('Test script', function () {
it('Test 1', async () => {
const element = await gf.get('.my-element');
});
});