This value supports switching to the currently active element in PageObject DSL.
This value supports switching to the currently active element in PageObject DSL.
This class is enables the following syntax:
switch to activeElement ^
This value supports switching to the alert box in PageObject DSL.
This value supports switching to the alert box in PageObject DSL.
This class is enables the following syntax:
switch to alertBox ^
Closes the current browser window, and exits the driver if the current window was the only one remaining.
Closes the current browser window, and exits the driver if the current window was the only one remaining.
the WebDriver
with which to drive the browser
Returns the URL of the current page.
Returns the URL of the current page.
This method invokes getCurrentUrl
on the passed WebDriver
and returns the result.
the WebDriver
with which to drive the browser
the URL of the current page
This value supports switching to the default content in PageObject DSL.
This value supports switching to the default content in PageObject DSL.
This class is enables the following syntax:
switch to defaultContent ^
This method supports switching to a frame by element in PageObject DSL.
This method supports switching to a frame by element in PageObject DSL.
Element
which is contained in the frame to switch to
a FrameElementTarget instance
This method supports switching to a frame by web element in PageObject DSL.
This method supports switching to a frame by web element in PageObject DSL.
WebElement
which is contained in the frame to switch to
a FrameWebElementTarget instance
This method supports switching to a frame by name or ID in PageObject DSL.
This method supports switching to a frame by name or ID in PageObject DSL.
This class is enables the following syntax:
switch to frame("name") ^
name or ID of the frame to switch to
a FrameNameOrIdTarget instance
This method supports switching to a frame by index in PageObject DSL.
This method supports switching to a frame by index in PageObject DSL.
This class is enables the following syntax:
switch to frame(0) ^
the index of frame to switch to
a FrameIndexTarget instance
Go back to previous page.
Go back to previous page.
the WebDriver
with which to drive the browser
Go forward to next page.
Go forward to next page.
the WebDriver
with which to drive the browser
Sends the browser to the URL contained in the passed Page
object.
Sends the browser to the URL contained in the passed Page
object.
Here's an example:
goTo(homePage)
the Page
object containing the URL to which to send the browser
the WebDriver
with which to drive the browser
Sends the browser to the passed URL.
Sends the browser to the passed URL.
Here's an example:
goTo("http://www.artima.com")
the URL to which to send the browser
the WebDriver
with which to drive the browser
Sets the amount of time the driver should wait when searching for an element that is not immediately present.
Sets the amount of time the driver should wait when searching for an element that is not immediately present.
When searching for requested elements, Selenium will poll the page until the requested element
(or at least one of multiple requested elements) is found or this "implicit wait" timeout has expired.
If the timeout expires, Selenium will throw NoSuchElementException
,
which will wrap by TestHelper.failTest()
.
It is recommended to use PageObject's waitFor
construct instead.
This method invokes manage.timeouts.implicitlyWait
on the passed WebDriver
.
See the documentation of Selenium's
WebDriver#Timeouts
interface for more information.
the time span to implicitly wait
the WebDriver
on which to set the implicit wait
Close all windows, and exit the driver.
Close all windows, and exit the driver.
the WebDriver
on which to quit.
Reload the current page.
Reload the current page.
the WebDriver
with which to drive the browser
Switch to the specified SwitchTarget
Switch to the specified SwitchTarget
the SwitchTarget
to switch to
the WebDriver
with which to drive the browser
instance of specified SwitchTarget
's type parameter
This class supports switching to a window by name or handle in PageObject DSL.
This class supports switching to a window by name or handle in PageObject DSL.
This class is enables the following syntax:
switch to window(windowHandle) ^
name or window handle of the window to switch to
a WindowTarget instance
Get an opaque handle to current active window that uniquely identifies it within the implicit driver instance.
Get an opaque handle to current active window that uniquely identifies it within the implicit driver instance.
the WebDriver
with which to drive the browser
Get a set of window handles which can be used to iterate over all open windows
Get a set of window handles which can be used to iterate over all open windows
the WebDriver
with which to drive the browser
This trait is part of the PageObject DSL.
This trait is a summary of all traits that should not be used by PageModules.