public interface TestBenchCommands extends CanCompareScreenshots
Modifier and Type | Method and Description |
---|---|
void |
disableWaitForVaadin()
Disables implicit waiting for Vaadin to finish processing requests.
|
void |
enableWaitForVaadin()
Enables implicit waiting for Vaadin to finish processing requests.
|
String |
getRemoteControlName()
Finds the canonical host name of the remotely executing node where the
test is being run.
|
boolean |
isAutoScrollIntoView()
Whether or not the elements should be scrolled into the visible area of
the browser window before interacting with them
|
void |
resizeViewPortTo(int width,
int height)
Tries to resize the browsers window so that the space available for
actual web content (aka viewport) is of given size.
|
void |
setAutoScrollIntoView(boolean autoScrollIntoView)
Sets if the elements should be scrolled into the visible area of the
browser window before interacting with them
|
long |
timeSpentRenderingLastRequest()
This method provides performance information of the client-side rendering
for the last operation performed.
|
long |
timeSpentServicingLastRequest()
This method provides performance information of the server-side
processing for the last request.
|
long |
totalTimeSpentRendering()
This method provides performance information of the client-side rendering
for the entire session.
|
long |
totalTimeSpentServicingRequests()
This method provides performance information of the server-side
processing for the entire session.
|
compareScreen, compareScreen, compareScreen
String getRemoteControlName()
long timeSpentRenderingLastRequest()
timeSpentRenderingLastRequest()
or
totalTimeSpentServicingRequests()
, since they will perform an
extra request, causing the value returned from this method to be that for
an empty request/response.long totalTimeSpentRendering()
long timeSpentServicingLastRequest()
timeSpentRenderingLastRequest()
before calling this method. This is due to the fact that this method
causes an extra server round-trip, which will cause an empty response to
be rendered.long totalTimeSpentServicingRequests()
timeSpentRenderingLastRequest()
before calling this method. This is due to the fact that this method
causes an extra server round-trip, which will cause an empty response to
be rendered.void disableWaitForVaadin()
void enableWaitForVaadin()
boolean isAutoScrollIntoView()
void setAutoScrollIntoView(boolean autoScrollIntoView)
autoScrollIntoView
- void resizeViewPortTo(int width, int height) throws UnsupportedOperationException
Note, that the result cannot be guaranteed on all platforms. For example browsers in mobile devices are most often always fullscreen and their viewport can be "simultated". Also browsers might not allow resizing the window or limit size of window to minimum or maximum (often limited by screen size). Currently most common desktop browsers support this.
width
- the desired width of the viewportheight
- the desired height of the viewportUnsupportedOperationException
Copyright © 2019. All rights reserved.