org.pageobject.core.dsl

BrowserControlDsl

trait BrowserControlDsl extends DriverDsl with NavigationDsl with SwitchTargetDsl with WindowDsl

This trait is part of the PageObject DSL.

This trait is a summary of all traits that should not be used by PageModules.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BrowserControlDsl
  2. WindowDsl
  3. SwitchTargetDsl
  4. NavigationDsl
  5. DriverDsl
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val activeElement: ActiveElementTarget

    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
    ^
    

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  7. val alertBox: AlertTarget

    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
    ^
    

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def close()(implicit driver: WebDriver): Unit

    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.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  11. def currentUrl(implicit driver: WebDriver): String

    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.

    driver

    the WebDriver with which to drive the browser

    returns

    the URL of the current page

    Attributes
    protected
    Definition Classes
    NavigationDsl
  12. val defaultContent: DefaultContentTarget

    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
    ^
    

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def frame(element: Element): FrameElementTarget

    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

    Element which is contained in the frame to switch to

    returns

    a FrameElementTarget instance

    Attributes
    protected
    Definition Classes
    WindowDsl
  17. def frame(element: WebElement): FrameWebElementTarget

    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.

    element

    WebElement which is contained in the frame to switch to

    returns

    a FrameWebElementTarget instance

    Attributes
    protected
    Definition Classes
    WindowDsl
  18. def frame(nameOrId: String): FrameNameOrIdTarget

    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")
    ^
    

    nameOrId

    name or ID of the frame to switch to

    returns

    a FrameNameOrIdTarget instance

    Attributes
    protected
    Definition Classes
    WindowDsl
  19. def frame(index: Int): FrameIndexTarget

    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)
    ^
    

    index

    the index of frame to switch to

    returns

    a FrameIndexTarget instance

    Attributes
    protected
    Definition Classes
    WindowDsl
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. val go: Go.type

    Attributes
    protected
    Definition Classes
    NavigationDsl
  22. def goBack()(implicit driver: WebDriver): Unit

    Go back to previous page.

    Go back to previous page.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  23. def goForward()(implicit driver: WebDriver): Unit

    Go forward to next page.

    Go forward to next page.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  24. def goTo(page: UrlPage)(implicit driver: WebDriver): Unit

    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)
    

    page

    the Page object containing the URL to which to send the browser

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  25. def goTo(url: String)(implicit driver: WebDriver): Unit

    Sends the browser to the passed URL.

    Sends the browser to the passed URL.

    Here's an example:

    goTo("http://www.artima.com")
    

    url

    the URL to which to send the browser

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. def implicitlyWait(timeout: FiniteDuration)(implicit driver: WebDriver): Unit

    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.

    timeout

    the time span to implicitly wait

    driver

    the WebDriver on which to set the implicit wait

    Attributes
    protected
    Definition Classes
    DriverDsl
  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. def quit()(implicit driver: WebDriver): Unit

    Close all windows, and exit the driver.

    Close all windows, and exit the driver.

    driver

    the WebDriver on which to quit.

    Attributes
    protected
    Definition Classes
    DriverDsl
  33. def reloadPage()(implicit driver: WebDriver): Unit

    Reload the current page.

    Reload the current page.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  34. val switch: Switch.type

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  35. def switchTo[T](target: SwitchTarget[T])(implicit driver: WebDriver): T

    Switch to the specified SwitchTarget

    Switch to the specified SwitchTarget

    target

    the SwitchTarget to switch to

    driver

    the WebDriver with which to drive the browser

    returns

    instance of specified SwitchTarget's type parameter

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def window(nameOrHandle: String): WindowTarget

    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)
    ^
    

    nameOrHandle

    name or window handle of the window to switch to

    returns

    a WindowTarget instance

    Attributes
    protected
    Definition Classes
    WindowDsl
  42. def windowHandle(implicit driver: WebDriver): String

    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.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    WindowDsl
  43. def windowHandles(implicit driver: WebDriver): Set[String]

    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

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    WindowDsl

Inherited from WindowDsl

Inherited from SwitchTargetDsl

Inherited from NavigationDsl

Inherited from DriverDsl

Inherited from AnyRef

Inherited from Any

Ungrouped