public class WidgetContainer extends GwtWidget<GwtWidgetFinder<WidgetContainer>>
HasWidgets
.
The main way to use this type is to invoke findWidget(By)
and findWidgets(By)
.
These methods are like WebElement's findElement and findElements - they accept a By, but instead
of returning one or more WebElement instances, they return GwtWidget. These objects can be
transformed into specific subclasses via the GwtWidget.as(Class)
method.
GwtWidget.ForWidget
Constructor and Description |
---|
WidgetContainer(WebDriver driver,
WebElement element) |
Modifier and Type | Method and Description |
---|---|
GwtWidget<?> |
findWidget(By by)
Convenience method to find a specific child/descendant widgets and wrap it.
|
List<GwtWidget<?>> |
findWidgets(By by)
Convenience method to find child/descendant widgets and wrap them.
|
as, escapeToString, find, find, find, getDriver, getElement, is
public WidgetContainer(WebDriver driver, WebElement element)
public List<GwtWidget<?>> findWidgets(By by)
WebElement.findElements(By)
- can be used to find if nothing matches this By.by
- public GwtWidget<?> findWidget(By by) throws NoSuchElementException
WebElement.findElement(By)
- will throw an exception if nothing
matches.by
- NoSuchElementException
Copyright © 2012-2013 Sencha Labs. All Rights Reserved.