gf.getStyles
gf.getStyles(selector: string): Promise<Object>
Section titled “gf.getStyles(selector: string): Promise<Object>”Retrieves the computed styles of the specified element.
selector
: The CSS selector of the element to retrieve.- Returns a promise that resolves to an object containing the computed styles of the element.
- The object has the following structure:
{ property: value }
.
describe('Test script', function () { it('Test 1', async () => { const styles = await gf.getStyles('.my-element'); });});