gf.children
gf.children(selector: string): Promise<DOMElements>
Section titled “gf.children(selector: string): Promise<DOMElements>”Retrieves the children of the specified element.
selector
: The CSS selector of the element to get the children from.- Returns a promise that resolves to an array of
DOMElement
instances.
describe('Test script', function () { it('Test 1', async () => { const children = await gf.children('.my-element'); });});