Skip to content

gf.getClasses

gf.getClasses(selector: string): Promise<string[]>

Section titled “gf.getClasses(selector: string): Promise<string[]>”

Retrieves the classes of the specified element.

  • selector: The CSS selector of the element to retrieve.
  • 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 classes = await gf.getClasses('.my-element');
});
});