public class ElementResizer extends Object implements AutoCloseable
| Constructor and Description |
|---|
ElementResizer(Path path,
int expectedWidth,
int expectedHeight)
Resize an element in the browser
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Revert state
|
Long |
getTotalHeight()
get total scrollable height of the element
|
Long |
getTotalWidth()
get total scrollable width of the element
|
Long |
getVisibleHeight()
get visible height of the element
|
Long |
getVisibleWidth()
get visible width of the element
|
static Long |
getVisibleWidth(Path el)
get visible width of the element
|
public ElementResizer(Path path, int expectedWidth, int expectedHeight)
path - The element to resizeexpectedWidth - expected widthexpectedHeight - expected heightpublic Long getVisibleHeight()
public Long getVisibleWidth()
public static Long getVisibleWidth(Path el)
el - - the path to examinepublic Long getTotalHeight()
public Long getTotalWidth()
public void close()
close in interface AutoCloseableCopyright © 2019. All rights reserved.