UNPKG

@testplane/webdriverio

Version:

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

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