public class WindowResizer extends Object implements AutoCloseable
| Constructor and Description |
|---|
WindowResizer(int expectedWidth,
int expectedHeight)
Resize a browser to the requested dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Revert state
|
Long |
getTotalHeight()
get total scrollable height of the browser
|
Long |
getTotalWidth()
get total scrollable width of the browser
|
Long |
getVisibleHeight()
get visible height of the browser
|
Long |
getVisibleWidth()
get visible width of the browser
|
public WindowResizer(int expectedWidth,
int expectedHeight)
expectedWidth - expected widthexpectedHeight - expected heightpublic Long getVisibleHeight()
public Long getVisibleWidth()
public Long getTotalHeight()
public Long getTotalWidth()
public void close()
close in interface AutoCloseableCopyright © 2019. All rights reserved.