Skip to content

element.getAttributes

Retrieves the attributes of the element.

  • Returns a promise that resolves to an object containing the attributes of the element.
  • The object has the following structure: { attribute: value }.
describe('Test script', function () {
it('Test 1', async () => {
const element = await gf.get('.my-element');
const attributes = await element.getAttributes();
});
});