diff --git a/webdriverio/index.d.ts b/webdriverio/index.d.ts index 8f22d2e5aa..dff87053d7 100644 --- a/webdriverio/index.d.ts +++ b/webdriverio/index.d.ts @@ -395,36 +395,22 @@ declare namespace WebdriverIO { ): Client
; getHTML
(includeSelectorTag: boolean): Client
; - getLocation(selector?: string): Size; - getLocation(selector: string, axis: string): number; - getLocation(axis: string): number; + getLocation(axis: Axis): number; + getLocation
(axis: Axis): Client
; + getLocation(selector?: string): Location; getLocation
(selector?: string): Client
; - getLocation
( - selector: string, - axis: string - ): Client
; - getLocation
(axis: string): Client
; + getLocation(selector: string, axis: Axis): number; + getLocation
(selector: string, axis: Axis): Client
; - getLocationInView(selector: string): Size; - getLocationInView(selector: string): Size[]; - getLocationInView(): Size; - getLocationInView(): Size[]; - getLocationInView( - selector: string, - axis: string - ): number; - getLocationInView( - selector: string, - axis: string - ): number[]; - getLocationInView(axis: string): number; - getLocationInView(axis: string): number[]; + getLocationInView(axis: Axis): number; + getLocationInView(axis: Axis): number[]; + getLocationInView
(axis: Axis): Client
; + getLocationInView(selector?: string): Location; + getLocationInView(selector?: string): Location[]; getLocationInView
(selector?: string): Client
; - getLocationInView
( - selector: string, - axis: string - ): Client
; - getLocationInView
(axis: string): Client
; + getLocationInView(selector: string, axis: Axis): number; + getLocationInView(selector: string, axis: Axis): number[]; + getLocationInView
(selector: string, axis: Axis): Client
;
getSource(): Client (): Client ;
@@ -471,7 +457,7 @@ declare namespace WebdriverIO {
value: any;
}
- export interface Location {
+ export interface GeoLocation {
latitude: number;
longitude: number;
altitude: number;
@@ -1027,6 +1013,8 @@ declare namespace WebdriverIO {
switchTab (windowHandle?: string): Client ;
}
+ export type Axis = "x" | "y";
+
export interface Options {
protocol: string;
waitforTimeout: number;