element.find
element.find(selector: string): Promise<DOMElement>
Section titled “element.find(selector: string): Promise<DOMElement>”Finds a DOM element using the specified selector starting from the current element.
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'); const childElement = await element.find('.child-element'); });});