Namespace: webdriverView Sourceclass WebDriver.WindowAn interface for managing the current window. new WebDriver.Window(driver)Parametersdriverwebdriver.WebDriverThe parent driver. Instance MethodsgetPosition()code »Retrieves the window's current position, relative to the top left corner of the screen. Returnswebdriver.promise.Promise<{x: number, y: number}>A promise that will be resolved with the window's position in the form of a {x:number, y:number} object literal. getSize()code »Retrieves the window's current size. Returnswebdriver.promise.Promise<{height: number, width: number}>A promise that will be resolved with the window's size in the form of a {width:number, height:number} object literal. maximize()code »Maximizes the current window. Returnswebdriver.promise.Promise<undefined>A promise that will be resolved when the command has completed. setPosition(x, y)code »Repositions the current window. ParametersxnumberThe desired horizontal position, relative to the left side of the screen. ynumberThe desired vertical position, relative to the top of the of the screen. Returnswebdriver.promise.Promise<undefined>A promise that will be resolved when the command has completed. setSize(width, height)code »Resizes the current window. ParameterswidthnumberThe desired window width. heightnumberThe desired window height. Returnswebdriver.promise.Promise<undefined>A promise that will be resolved when the command has completed.