Skip to content

element.classes

Retrieves the classes of the element.

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