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