UNPKG

@testplane/webdriverio

Version:

Next-gen browser and mobile automation test framework for Node.js

6 lines (5 loc) 403 B
import type { RectReturn } from '@testplane/wdio-protocols'; export type Size = Pick<RectReturn, 'width' | 'height'>; export declare function getSize(this: WebdriverIO.Element): Promise<Size>; export declare function getSize(this: WebdriverIO.Element, prop: keyof RectReturn): Promise<number>; export declare function getSize(this: WebdriverIO.Element, prop?: keyof RectReturn): Promise<Size & number>;