Skip to content

element.getParent

Retrieves the parent element of the current DOM element.

  • Returns a promise that resolves to a DOMElement instances representing the parent of the element.
describe('Test script', function () {
it('Test 1', async () => {
const element = await gf.get('.my-element');
const parent = await element.getParent();
});
});