Appearance
UI.outerWidth
UI.outerWidth is a read-only property that returns the width of the browser window, in pixels. This includes the browser chrome such as the address bar, tabs, and window borders.
Usage
js
var w = UI.outerWidthExample
js
if(UI.outerWidth < 800){
I.see(".mobile-menu")
}In the example above, the test checks if the element ".mobile-menu" is visible if the width of the browser window is less than 800 pixels.