Skip to content

element.getOuterHTML

Retrieves the outer HTML of the element.

  • Returns a promise that resolves to the outer HTML of the element.
describe('Test script', function () {
it('Test 1', async () => {
const element = await gf.get('.my-element');
const outerHTML = await element.getOuterHTML();
});
});