public class Dock extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DIFF_IMAGE_SUFFIX
Default suffix to construct diff image name.
|
static String |
DEFAULT_RESULT_IMAGE_SUFFIX
Default suffix to construct result image name.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
bounds() |
Object |
control() |
Drag |
drag() |
Environment |
environment() |
protected <P> P |
getProperty(GetAction<P> action) |
Keyboard |
keyboard() |
protected static <T> Wrap<? extends T> |
lookup(Parent<? super T> parent,
Class<T> controlType,
int index,
LookupCriteria<T>... criteria)
Method which at the end actually get called from all dock lookup
constructors.
|
Mouse |
mouse() |
void |
waitImage(String goldenId)
Constructs names for diff and result images and waits for the control to match it.
|
void |
waitImage(String goldenId,
Rectangle rect)
Constructs names for diff and result images and waits for the control to match it.
|
void |
waitImage(String goldenId,
Rectangle rect,
String resID,
String diffID)
Loads image with
goldenId id waits for the control to match it. |
void |
waitImage(String goldenId,
String resID,
String diffID)
Loads image with
goldenId id waits for the control to match it. |
Wrap<?> |
wrap() |
public static final String DEFAULT_RESULT_IMAGE_SUFFIX
public static final String DEFAULT_DIFF_IMAGE_SUFFIX
protected Dock(Wrap<?> wrap)
protected static <T> Wrap<? extends T> lookup(Parent<? super T> parent, Class<T> controlType, int index, LookupCriteria<T>... criteria)
T - todo documentparent - todo documentcontrolType - todo documentindex - todo documentcriteria - todo documentpublic Wrap<?> wrap()
public Object control()
public Mouse mouse()
wrap().mouse()public Keyboard keyboard()
wrap().keyboard()public Drag drag()
wrap().drag()public Rectangle bounds()
wrap().getScreenBounds()protected <P> P getProperty(GetAction<P> action)
public Environment environment()
wrap().getEnvironment().public void waitImage(String goldenId, Rectangle rect, String resID, String diffID)
goldenId id waits for the control to match it.goldenId - todo documentrect - todo documentresID - todo documentdiffID - todo documentWrap.waitImage(org.jemmy.image.Image, org.jemmy.Rectangle, java.lang.String, java.lang.String)public void waitImage(String goldenId, Rectangle rect)
goldenId - todo documentrect - todo documentwaitImage(java.lang.String, org.jemmy.Rectangle, java.lang.String, java.lang.String),
DEFAULT_DIFF_IMAGE_SUFFIX,
DEFAULT_RESULT_IMAGE_SUFFIXpublic void waitImage(String goldenId, String resID, String diffID)
goldenId id waits for the control to match it.goldenId - todo documentresID - todo documentdiffID - todo documentWrap.waitImage(org.jemmy.image.Image, java.lang.String, java.lang.String)public void waitImage(String goldenId)
goldenId - todo documentwaitImage(java.lang.String, java.lang.String, java.lang.String),
DEFAULT_DIFF_IMAGE_SUFFIX,
DEFAULT_RESULT_IMAGE_SUFFIXCopyright © 2018. All rights reserved.