import {Window} from '@serenity-js/protractor/lib/screenplay/questions'
public class | source

Window

Static Method Summary

Static Public Methods
public static

position(): Question<Promise<{x: number, y: number}>>

Returns the { x: number, y: number } position of the current browser window.

public static

size(): Question<Promise<{width: number, height: number}>>

Returns the size of the current browser window.

Static Public Methods

public static position(): Question<Promise<{x: number, y: number}>> source

Returns the { x: number, y: number } position of the current browser window.

Returns:

Question<Promise<{x: number, y: number}>>

public static size(): Question<Promise<{width: number, height: number}>> source

Returns the size of the current browser window.

Returns:

Question<Promise<{width: number, height: number}>>