public class SwingDriver extends UiDriver
| Modifier and Type | Field and Description |
|---|---|
protected org.fest.swing.fixture.ContainerFixture<? extends Container> |
currentContainer
Current container context used for searching of other components
|
protected boolean |
isJnlpCached |
protected String |
jnlpLocation |
protected org.fest.swing.fixture.WindowFixture<? extends Window> |
windowFixture
Current window container.
|
protected String |
windowTitle |
| Modifier | Constructor and Description |
|---|---|
protected |
SwingDriver(Class<?> mainClassOfTestedApplication) |
protected |
SwingDriver(Class<?> mainClassOfTestedApplication,
String windowTitile) |
protected |
SwingDriver(String windowTitile) |
|
SwingDriver(String jnlpLocation,
boolean cacheEnabled) |
| Modifier and Type | Method and Description |
|---|---|
SwingEngine |
getSwingEngine() |
void |
setCommandDelay(int commandDelay)
Set the delay time between commands
NOTE: It also sets this delay time as a default command delay time of UiEngineConfigurator |
void |
start()
start the driver
|
void |
stop()
stop the driver
|
void |
stop(boolean cleanResources)
Cleans up any used resources (keyboard, mouse, open windows and
) used. |
getChromeDriver, getChromeDriver, getCustomDriver, getEdgeDriver, getEdgeDriver, getFirefoxDriver, getFirefoxDriver, getFirefoxDriver, getHiddenBrowserDriver, getHiddenBrowserDriver, getInternetExplorerDriver, getInternetExplorerDriver, getMobileDriver, getMobileDriver, getPhantomJSDriver, getRobotDriver, getSafariDriver, getSafariDriver, getSwingDriver, getSwingDriver, getSwingDriver, getSwingDriverprotected String windowTitle
protected String jnlpLocation
protected boolean isJnlpCached
protected org.fest.swing.fixture.WindowFixture<? extends Window> windowFixture
protected org.fest.swing.fixture.ContainerFixture<? extends Container> currentContainer
protected SwingDriver(String windowTitile)
windowTitile - the window titleprotected SwingDriver(Class<?> mainClassOfTestedApplication)
mainClassOfTestedApplication - the class containing the "main" methodprotected SwingDriver(Class<?> mainClassOfTestedApplication, String windowTitile)
mainClassOfTestedApplication - the class containing the "main" methodwindowTitile - the window titlepublic SwingDriver(String jnlpLocation, boolean cacheEnabled)
jnlpLocation - JNLP location. It can be local JNLP file path or a remote urlcacheEnabled - whether the JNLP is cached or notpublic void start()
UiDriverpublic void stop()
UiDriverpublic void stop(boolean cleanResources)
ScreenLock) used.cleanResources - if true release UI resourcespublic SwingEngine getSwingEngine()
public void setCommandDelay(int commandDelay)
UiEngineConfiguratorcommandDelay - a value representing the delay time between commands (in milliseconds)Copyright © 2017 Axway Software. All rights reserved.