public class SwingElementLocator extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<Class<? extends UiElement>,Class<? extends Component>> |
componentsMap |
| Constructor and Description |
|---|
SwingElementLocator() |
| Modifier and Type | Method and Description |
|---|---|
static org.fest.swing.fixture.ComponentFixture<? extends Component> |
findFixture(UiElement uiElement) |
static String |
getComponentHierarchy(SwingDriverInternal driver) |
static org.fest.swing.fixture.ContainerFixture<?> |
getContainerFixture(SwingDriverInternal driver,
UiElementProperties containerProperties)
Change container by specified name or title.
|
static org.fest.swing.fixture.WindowFixture<?> |
getWindowFixture(SwingDriverInternal driver,
String windowTitle,
boolean isDialog)
Change window by specified name.
|
static void |
useComponentInspector(SwingDriverInternal driver)
Log the clicked element (its type, properties and index in the component hierarchy from the current container)
|
public static org.fest.swing.fixture.ComponentFixture<? extends Component> findFixture(UiElement uiElement)
public static org.fest.swing.fixture.ContainerFixture<?> getContainerFixture(SwingDriverInternal driver, UiElementProperties containerProperties)
driver - containerProperties - property with name insideContainerFinxturepublic static org.fest.swing.fixture.WindowFixture<?> getWindowFixture(SwingDriverInternal driver, String windowTitle, boolean isDialog) throws ElementNotFoundException
driver - Swing driverwindowTitle - if null look for any visible windowisDialog - ContainerFinxtureElementNotFoundExceptionpublic static String getComponentHierarchy(SwingDriverInternal driver)
driver - Swing driverStringpublic static void useComponentInspector(SwingDriverInternal driver)
driver - SwingDriverInternal instanceCopyright © 2017 Axway Software. All rights reserved.