public class AutoTest
extends java.lang.Object
Constructor and Description |
---|
AutoTest() |
Modifier and Type | Method and Description |
---|---|
static Canvas |
getTestRoot()
Gets the implicit root canvas available in scLocators starting "//testRoot[]".
|
static java.lang.Boolean |
isCanvasDone(Canvas canvas)
Returns whether the canvas is in a consistent state with no pending operations.
|
static java.lang.Boolean |
isElementClickable(Canvas canvas)
Returns whether the instance is ready to be clicked on by a Selenium test.
|
static java.lang.Boolean |
isElementClickable(FormItem item)
Returns whether the instance is ready to be clicked on by a Selenium test.
|
static java.lang.Boolean |
isElementReadyForKeyPresses(Canvas canvas)
Given a DOM element, returns whether the associated Smart GWT Canvas or FormItem is ready to receive keyPress events
from a Selenium test.
|
static java.lang.Boolean |
isElementReadyForKeyPresses(FormItem item)
Given a DOM element, returns whether the associated Smart GWT Canvas or FormItem is ready to receive keyPress events
from a Selenium test.
|
static java.lang.Boolean |
isFormDone(Canvas canvas)
Returns whether the DynamicForm is in a consistent state with no pending operations.
|
static java.lang.Boolean |
isGridDone(Canvas canvas)
Returns whether the ListGrid supplied or containing the supplied canvas is in a consistent state with no pending
operations.
|
static java.lang.Boolean |
isItemDone(FormItem item)
Returns whether the FormItem is in a consistent state with no pending operations.
|
static boolean |
isSystemDone(boolean includeRedraws)
Returns whether the loaded page is in a consistent state with no pending operations.
|
static java.lang.Boolean |
isTileGridDone(Canvas canvas)
Returns whether the TileGrid is in a consistent state with no pending operations.
|
static java.lang.Boolean |
isTileLayoutDone(Canvas canvas)
Returns whether the TileLayout is in a consistent state with no pending operations.
|
static void |
setTestRoot(Canvas canvas)
Sets the implicit root canvas available in scLocators starting "//testRoot[]".
|
public static java.lang.Boolean isCanvasDone(Canvas canvas)
canvas
- canvas to testpublic static java.lang.Boolean isElementClickable(Canvas canvas)
implicitNetworkWait
) isCanvasDone()
isTileGridDone()
isTileLayoutDone()
isGridDone()
isFormDone()
canvas
- instance to testpublic static java.lang.Boolean isElementClickable(FormItem item)
implicitNetworkWait
) isCanvasDone()
isTileGridDone()
isTileLayoutDone()
isGridDone()
isFormDone()
item
- instance to testpublic static java.lang.Boolean isElementReadyForKeyPresses(Canvas canvas)
TextItem
, FileItem
, or TextAreaItem
,
it has native focus, isElementClickable()
canvas
- DOM element to test (element obtained from canvas, form item, or Smart GWT locator if provided)public static java.lang.Boolean isElementReadyForKeyPresses(FormItem item)
TextItem
, FileItem
, or TextAreaItem
,
it has native focus, isElementClickable()
item
- DOM element to test (element obtained from canvas, form item, or Smart GWT locator if provided)public static java.lang.Boolean isFormDone(Canvas canvas)
DynamicForm
. Otherwise, returns true or false
according as the conditions below are all satisfied: isItemDone()
canvas
- canvas to testpublic static java.lang.Boolean isGridDone(Canvas canvas)
canvas
- canvas to testpublic static java.lang.Boolean isItemDone(FormItem item)
FormItem
. Otherwise, returns true or false according as
the conditions below are all satisfied: isCanvasDone()
SelectItem
or ComboBoxItem
)
cannot have any pending row fetches item
- canvas to testpublic static boolean isSystemDone(boolean includeRedraws)
isGridDone()
isTileGridDone()
isTileLayoutDone()
isFormDone()
isCanvasDone()
implicitNetworkWait
) includeRedraws
- whether to check for pending Canvas redrawspublic static java.lang.Boolean isTileGridDone(Canvas canvas)
isTileLayoutDone()
canvas
- TileGrid to testpublic static java.lang.Boolean isTileLayoutDone(Canvas canvas)
isCanvasDone()
canvas
- TileLayout to testpublic static void setTestRoot(Canvas canvas)
canvas
- the implicit rootpublic static Canvas getTestRoot()