|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
WebDriverEventListener and are only interested
in some events.WebElement.clear(),
WebElement.sendKeys(...), or
WebElement.toggle().
WebElement.click().
WebDriver.findElement(...),
or WebDriver.findElements(...),
or WebElement.findElement(...),
or WebElement.findElements(...).
WebDriver.navigate().back().
WebDriver.navigate().forward().
WebDriver.get(String url)
respectively WebDriver.navigate().to(String url).
WebDriver#executeScript(String).
WebElements.Finders.WebElement.clear(),
WebElement.sendKeys(...), or
WebElement.toggle().
WebElement.click().
WebDriver.findElement(...),
or WebDriver.findElements(...),
or WebElement.findElement(...),
or WebElement.findElements(...).
WebDriver.navigate().back().
WebDriver.navigate().forward().
WebDriver.get(String url)
respectively WebDriver.navigate().to(String url).
WebDriver#executeScript(String)
message and
args, which are in the String.format(String, Object...)
Condition, which
need certain basic pieces that it needs to execute (e.g. an instance
of Selenium).ConditionRunner.waitFor(Condition) to
provide context to the
Condition#isTrue(com.google.testing.selenium.condition.ConditionRunner.Context)
methodDefaultConditionRunner.waitFor(Condition) is
successful (i.e.
ElementLocator this method will be called.
RuntimeException when the
condition is not met in the DefaultConditionRunner.waitFor(Condition) method.DefaultConditionRunner.NoOpMonitor.
DefaultConditionRunner.NoOpMonitor.
DefaultConditionRunner.Monitor.DefaultConditionRunner.Monitor can be installed in DefaultConditionRunner as an
open ended way of being notified of certain events.DefaultConditionRunner.Monitor.Finder for HTML div tags.ConditionRunner.waitFor(Condition)
method for this context was called.
ElementLocators.WebDriver instance
which supports registering of a WebDriverEventListener,
e.g. for logging purposes.ByChained
Eg:Selenium associated with this instance.
Finder for all types of HTML tags.Finder for HTML image tags.Condition.isTrue(ConditionRunner.Context) can call this method
to set extra information to be displayed upon a failure.
PageFactory.initElements(org.openqa.selenium.WebDriver, Class)
but will only replace the fields of an already instantiated Page Object.
ElementLocatorFactory which is used for providing the
mechanism for fniding elements.
FieldDecorator which is used for decorating each of the fields.
Finder for HTML input tags.HamcrestWebDriverTestCase#type(String, Finder) ,
e.g. type("cheese", into(textbox()));
The into() method simply returns its argument.
AssertionError when
the condition is not met - the same as JUnit4 and TestNG do.AssertionFailedError when
the condition is not met.Matchers.Finder for HTML title tags.LoadableComponent which might not have finished loading when
load() returns.Finder for HTML table cell "td" tags.Finder for HTML table tags.Matcher for matching text content within WebElements.ExpectedCondition is not met
met by a Wait.condition's
Condition.isTrue(ConditionRunner.Context) method, until:
it becomes true, in which case it simply returns
a certain amount of time is passed, in which case it fails by throwing
an failure exception tailored to a given test framework -- e.g.
DefaultConditionRunner.waitFor(Condition) has
begun, and is being tracked with the given condition.
WebDriver.Finder for elements using XPath expressions
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||