element.classes
element.classes(): Promise<string[]>
Section titled “element.classes(): Promise<string[]>”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(); });});