Trait/Object

org.scalatest.selenium

Safari

Related Docs: object Safari | package selenium

Permalink

trait Safari extends WebBrowser with Driver with ScreenshotCapturer

WebBrowser subtrait that defines an implicit WebDriver for Safari (an org.openqa.selenium.safari.SafariDriver).

Source
WebBrowser.scala
Linear Supertypes
ScreenshotCapturer, Driver, WebBrowser, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Safari
  2. ScreenshotCapturer
  3. Driver
  4. WebBrowser
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class ActiveElementTarget extends SwitchTarget[Element]

    Permalink

    This class supports switching to the currently active element in ScalaTest's Selenium DSL.

    This class supports switching to the currently active element in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class is enables the following syntax:

    switch to activeElement
              ^
    

    Definition Classes
    WebBrowser
  2. final class AlertTarget extends SwitchTarget[Alert]

    Permalink

    This class supports switching to the alert box in ScalaTest's Selenium DSL.

    This class supports switching to the alert box in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class is enables the following syntax:

    switch to alertBox
              ^
    

    Definition Classes
    WebBrowser
  3. final class Checkbox extends Element

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    checkbox("cbx1").select()
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a checkbox

  4. case class ClassNameQuery(queryString: String) extends Query with Product with Serializable

    Permalink

    A class name query.

    A class name query.

    This class enables syntax such as the following:

    click on className("???")
             ^
    

    queryString

    the query string for this query.

    Definition Classes
    WebBrowser
  5. final class ColorField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    colorField("q").value should be ("Cheese!")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a color field

  6. class CookiesNoun extends AnyRef

    Permalink

    This class is part of the ScalaTest's Selenium DSL.

    This class is part of the ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    Definition Classes
    WebBrowser
  7. case class CssSelectorQuery(queryString: String) extends Query with Product with Serializable

    Permalink

    A CSS selector query.

    A CSS selector query.

    This class enables syntax such as the following:

    click on cssSelector("???")
             ^
    

    queryString

    the query string for this query.

    Definition Classes
    WebBrowser
  8. final class DateField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    dateField("q").value should be ("2003-03-01")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a date field

  9. final class DateTimeField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    dateTimeField("q").value should be ("2003-03-01T12:13:14")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a datetime field

  10. final class DateTimeLocalField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    dateTimeLocalField("q").value should be ("2003-03-01T12:13:14")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a datetime-local field

  11. final class DefaultContentTarget extends SwitchTarget[WebDriver]

    Permalink

    This class supports switching to the default content in ScalaTest's Selenium DSL.

    This class supports switching to the default content in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class is enables the following syntax:

    switch to defaultContent
              ^
    

    Definition Classes
    WebBrowser
  12. case class Dimension(width: Int, height: Int) extends Product with Serializable

    Permalink

    A dimension containing the width and height of a screen element.

    A dimension containing the width and height of a screen element.

    Definition Classes
    WebBrowser
  13. sealed trait Element extends AnyRef

    Permalink

    Wrapper class for a Selenium WebElement.

    Wrapper class for a Selenium WebElement.

    This class provides idiomatic Scala access to the services of an underlying WebElement. You can access the wrapped WebElement via the underlying method.

    Definition Classes
    WebBrowser
  14. final class EmailField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    emailField("q").value should be ("[email protected]")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a email field

  15. final class FrameElementTarget extends SwitchTarget[WebDriver]

    Permalink

    This class supports switching to a frame by element in ScalaTest's Selenium DSL.

    This class supports switching to a frame by element in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    Definition Classes
    WebBrowser
  16. final class FrameIndexTarget extends SwitchTarget[WebDriver]

    Permalink

    This class supports switching to a frame by index in ScalaTest's Selenium DSL.

    This class supports switching to a frame by index in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class is enables the following syntax:

    switch to frame(0)
              ^
    

    Definition Classes
    WebBrowser
  17. final class FrameNameOrIdTarget extends SwitchTarget[WebDriver]

    Permalink

    This class supports switching to a frame by name or ID in ScalaTest's Selenium DSL.

    This class supports switching to a frame by name or ID in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class is enables the following syntax:

    switch to frame("name")
              ^
    

    Definition Classes
    WebBrowser
  18. final class FrameWebElementTarget extends SwitchTarget[WebDriver]

    Permalink

    This class supports switching to a frame by web element in ScalaTest's Selenium DSL.

    This class supports switching to a frame by web element in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    Definition Classes
    WebBrowser
  19. case class IdQuery(queryString: String) extends Query with Product with Serializable

    Permalink

    An ID query.

    An ID query.

    This class enables syntax such as the following:

    click on id("q")
             ^
    

    queryString

    the query string for this query.

    Definition Classes
    WebBrowser
  20. case class LinkTextQuery(queryString: String) extends Query with Product with Serializable

    Permalink

    A link text query.

    A link text query.

    This class enables syntax such as the following:

    click on linkText("???")
             ^
    

    queryString

    the query string for this query.

    Definition Classes
    WebBrowser
  21. final class MonthField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    monthField("q").value should be ("2003-04")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a month field

  22. class MultiSel extends Element

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    multiSel("select2").clear("option5")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a multiple selection list

  23. class MultiSelOptionSeq extends IndexedSeq[String]

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    multiSel("select2").values += "option5"
                               ^
    

    Instances of this class are returned from the values method of MultiSel. MultiSelOptionSeq is an immutable IndexedSeq[String] that wraps an underlying immutable IndexedSeq[String] and adds two methods, + and -, to facilitate the += syntax for setting additional options of the MultiSel. The Scala compiler will rewrite:

    multiSel("select2").values += "option5"
    

    To:

    multiSel("select2").values = multiSel("select2").values + "option5"
    

    Thus, first a new MultiSelOptionSeq is created by invoking the + method on the MultiSelOptionSeq returned by values, and that result is passed to the values_= method.

    For symmetry, this class also offers a - method, which can be used to deselect an option, like this:

    multiSel("select2").values -= "option5"
                               ^
    

    Definition Classes
    WebBrowser
  24. case class NameQuery(queryString: String) extends Query with Product with Serializable

    Permalink

    A name query.

    A name query.

    This class enables syntax such as the following:

    click on name("q")
             ^
    

    queryString

    the query string for this query.

    Definition Classes
    WebBrowser
  25. final class NumberField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    numberField("q").value should be ("1.3")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a number field

  26. case class PartialLinkTextQuery(queryString: String) extends Query with Product with Serializable

    Permalink

    A partial link text query.

    A partial link text query.

    This class enables syntax such as the following:

    click on partialLinkText("???")
             ^
    

    queryString

    the query string for this query.

    Definition Classes
    WebBrowser
  27. final class PasswordField extends Element

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    pwdField("q").value should be ("Cheese!")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a password field

  28. case class Point(x: Int, y: Int) extends Product with Serializable

    Permalink

    A point containing an XY screen location.

    A point containing an XY screen location.

    Definition Classes
    WebBrowser
  29. sealed trait Query extends Product with Serializable

    Permalink

    This trait is part of ScalaTest's Selenium DSL.

    This trait is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    Subclasses of this trait define different ways of querying for elements, enabling syntax such as the following:

    click on id("q")
             ^
    

    Definition Classes
    WebBrowser
  30. final class RadioButton extends Element

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    radioButton(id("opt1")).value should be ("Option 1!")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a text area

  31. final class RadioButtonGroup extends AnyRef

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    radioButtonGroup("group1").value should be ("Option 2")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if no radio button with the passed groupName are found

  32. final class RangeField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    rangeField("q").value should be ("1.3")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a range field

  33. final class SearchField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    searchField("q").value should be ("google")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a search field

  34. class SingleSel extends Element

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    singleSel.clear()
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a single selection list

  35. sealed abstract class SwitchTarget[T] extends AnyRef

    Permalink

    This sealed abstract class supports switching in ScalaTest's Selenium DSL.

    This sealed abstract class supports switching in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    One subclass of SwitchTarget exists for each kind of target that can be switched to: active element, alert box, default content, frame (indentified by index, name or id, or enclosed element), and window.

    Definition Classes
    WebBrowser
  36. case class TagNameQuery(queryString: String) extends Query with Product with Serializable

    Permalink

    A tag name query.

    A tag name query.

    This class enables syntax such as the following:

    click on tagName("???")
             ^
    

    queryString

    the query string for this query.

    Definition Classes
    WebBrowser
  37. final class TelField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    telField("q").value should be ("911-911-9191")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a tel field

  38. final class TextArea extends Element

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    textArea("q").value should be ("Cheese!")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a text area

  39. final class TextField extends Element

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    textField("q").value should be ("Cheese!")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a text field

  40. final class TimeField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    timeField("q").value should be ("12:13:14")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a time field

  41. final class UrlField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    urlField("q").value should be ("http://google.com")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a url field

  42. trait ValueElement extends Element

    Permalink
    Definition Classes
    WebBrowser
  43. final class WeekField extends Element with ValueElement

    Permalink

    This class is part of ScalaTest's Selenium DSL.

    This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class enables syntax such as the following:

    weekField("q").value should be ("1996-W16")
    

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a week field

  44. final class WindowTarget extends SwitchTarget[WebDriver]

    Permalink

    This class supports switching to a window by name or handle in ScalaTest's Selenium DSL.

    This class supports switching to a window by name or handle in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class is enables the following syntax:

    switch to window(windowHandle)
              ^
    

    Definition Classes
    WebBrowser
  45. final class WrappedCookie extends AnyRef

    Permalink

    Wrapper class for a Selenium Cookie.

    Wrapper class for a Selenium Cookie.

    This class provides idiomatic Scala access to the services of an underlying Cookie. You can access the wrapped Cookie via the underlying method.

    Definition Classes
    WebBrowser
  46. case class XPathQuery(queryString: String) extends Query with Product with Serializable

    Permalink

    An XPath query.

    An XPath query.

    This class enables syntax such as the following:

    click on xpath("???")
             ^
    

    queryString

    the query string for this query.

    Definition Classes
    WebBrowser

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val activeElement: ActiveElementTarget

    Permalink

    This value supports switching to the currently active element in ScalaTest's Selenium DSL.

    This value supports switching to the currently active element in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class is enables the following syntax:

    switch to activeElement
              ^
    

    Definition Classes
    WebBrowser
  5. object add

    Permalink

    This object is part of ScalaTest's Selenium DSL.

    This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This object enables syntax such as the following:

    add cookie("aName", "aValue")
    ^
    

    Definition Classes
    WebBrowser
  6. def addCookie(name: String, value: String, path: String = "/", expiry: Date = null, domain: String = null, secure: Boolean = false)(implicit driver: WebDriver): Unit

    Permalink

    Add cookie in the web browser.

    Add cookie in the web browser. If the cookie's domain name is left blank (default), it is assumed that the cookie is meant for the domain of the current document.

    name

    cookie's name

    value

    cookie's value

    path

    cookie's path

    expiry

    cookie's expiry data

    domain

    cookie's domain name

    secure

    whether this cookie is secured.

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    WebBrowser
  7. val alertBox: AlertTarget

    Permalink

    This value supports switching to the alert box in ScalaTest's Selenium DSL.

    This value supports switching to the alert box in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class is enables the following syntax:

    switch to alertBox
              ^
    

    Definition Classes
    WebBrowser
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. object capture

    Permalink

    This object is part of ScalaTest's Selenium DSL.

    This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This object enables syntax such as the following:

    capture
    ^
    
    capture to "MyScreenshot.png"
    ^
    

    Definition Classes
    WebBrowser
  10. def captureScreenshot(directory: String): Unit

    Permalink

    Captures a screenshot and saves it as a file in the specified directory.

    Captures a screenshot and saves it as a file in the specified directory.

    Definition Classes
    Safari → ScreenshotCapturer
  11. def captureTo(fileName: String)(implicit driver: WebDriver): Unit

    Permalink

    Capture screenshot and save it as the specified name (if file name does not end with .png, it will be extended automatically) in capture directory, which by default is system property's java.io.tmpdir.

    Capture screenshot and save it as the specified name (if file name does not end with .png, it will be extended automatically) in capture directory, which by default is system property's java.io.tmpdir. You can change capture directory by calling setCaptureDir

    fileName

    screenshot file name, if does not end with .png, it will be extended automatically

    Definition Classes
    WebBrowser
  12. def checkbox(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Checkbox

    Permalink

    Finds and returns the first Checkbox selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a Checkbox.

    Finds and returns the first Checkbox selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a Checkbox.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the Checkbox selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a Checkbox

  13. def checkbox(query: Query)(implicit driver: WebDriver, pos: Position): Checkbox

    Permalink

    Finds and returns the first Checkbox selected by the specified Query, throws TestFailedException if element not found or the found element is not a Checkbox.

    Finds and returns the first Checkbox selected by the specified Query, throws TestFailedException if element not found or the found element is not a Checkbox.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the Checkbox selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a Checkbox

  14. def className(className: String): ClassNameQuery

    Permalink

    Returns a class name query.

    Returns a class name query.

    This method enables syntax such as the following:

    click on className("???")
             ^
    

    Definition Classes
    WebBrowser
  15. object click

    Permalink

    This object is part of ScalaTest's Selenium DSL.

    This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This object enables syntax such as the following:

    click on "aButton"
    ^
    

    Definition Classes
    WebBrowser
  16. def clickOn(element: Element): Unit

    Permalink

    Click on the specified Element

    Click on the specified Element

    element

    the Element to click on

    Definition Classes
    WebBrowser
  17. def clickOn(queryString: String)(implicit driver: WebDriver): Unit

    Permalink

    Click on the first Element selected by the specified string ID or name

    Click on the first Element selected by the specified string ID or name

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    WebBrowser
  18. def clickOn(query: Query)(implicit driver: WebDriver): Unit

    Permalink

    Click on the first Element selected by the specified Query

    Click on the first Element selected by the specified Query

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    WebBrowser
  19. def clickOn(element: WebElement): Unit

    Permalink

    Click on the specified WebElement

    Click on the specified WebElement

    element

    the WebElement to click on

    Definition Classes
    WebBrowser
  20. def clone(): AnyRef

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

    Permalink

    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

    Definition Classes
    WebBrowser
  22. def colorField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): ColorField

    Permalink

    Finds and returns the first ColorField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a ColorField.

    Finds and returns the first ColorField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a ColorField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the ColorField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a ColorField

  23. def colorField(query: Query)(implicit driver: WebDriver, pos: Position): ColorField

    Permalink

    Finds and returns the first ColorField selected by the specified Query, throws TestFailedException if element not found or the found element is not a ColorField.

    Finds and returns the first ColorField selected by the specified Query, throws TestFailedException if element not found or the found element is not a ColorField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the ColorField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a ColorField

  24. def cookie(name: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): WrappedCookie

    Permalink

    Get a saved cookie from web browser, throws TestFailedException if the cookie does not exist.

    Get a saved cookie from web browser, throws TestFailedException if the cookie does not exist.

    name

    cookie's name

    returns

    a WrappedCookie instance

    Definition Classes
    WebBrowser
  25. val cookies: CookiesNoun

    Permalink

    This field supports cookie deletion in ScalaTest's Selenium DSL.

    This field supports cookie deletion in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This field enables the following syntax:

    delete all cookies
               ^
    

    Definition Classes
    WebBrowser
  26. def cssSelector(cssSelector: String): CssSelectorQuery

    Permalink

    Returns a CSS selector query.

    Returns a CSS selector query.

    This method enables syntax such as the following:

    click on cssSelector("???")
             ^
    

    Definition Classes
    WebBrowser
  27. def currentUrl(implicit driver: WebDriver): String

    Permalink

    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

    Definition Classes
    WebBrowser
  28. def dateField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): DateField

    Permalink

    Finds and returns the first DateField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a DateField.

    Finds and returns the first DateField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a DateField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the DateField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a DateField

  29. def dateField(query: Query)(implicit driver: WebDriver, pos: Position): DateField

    Permalink

    Finds and returns the first DateField selected by the specified Query, throws TestFailedException if element not found or the found element is not a DateField.

    Finds and returns the first DateField selected by the specified Query, throws TestFailedException if element not found or the found element is not a DateField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the DateField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a DateField

  30. def dateTimeField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): DateTimeField

    Permalink

    Finds and returns the first DateTimeField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a DateTimeField.

    Finds and returns the first DateTimeField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a DateTimeField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the DateTimeField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a DateTimeField

  31. def dateTimeField(query: Query)(implicit driver: WebDriver, pos: Position): DateTimeField

    Permalink

    Finds and returns the first DateTimeField selected by the specified Query, throws TestFailedException if element not found or the found element is not a DateTimeField.

    Finds and returns the first DateTimeField selected by the specified Query, throws TestFailedException if element not found or the found element is not a DateTimeField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the DateTimeField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a DateTimeField

  32. def dateTimeLocalField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): DateTimeLocalField

    Permalink

    Finds and returns the first DateTimeLocalField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a DateTimeLocalField.

    Finds and returns the first DateTimeLocalField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a DateTimeLocalField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the DateTimeLocalField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a DateTimeLocalField

  33. def dateTimeLocalField(query: Query)(implicit driver: WebDriver, pos: Position): DateTimeLocalField

    Permalink

    Finds and returns the first DateTimeLocalField selected by the specified Query, throws TestFailedException if element not found or the found element is not a DateTimeLocalField.

    Finds and returns the first DateTimeLocalField selected by the specified Query, throws TestFailedException if element not found or the found element is not a DateTimeLocalField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the DateTimeLocalField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a DateTimeLocalField

  34. val defaultContent: DefaultContentTarget

    Permalink

    This value supports switching to the default content in ScalaTest's Selenium DSL.

    This value supports switching to the default content in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class is enables the following syntax:

    switch to defaultContent
              ^
    

    Definition Classes
    WebBrowser
  35. object delete

    Permalink

    This object is part of ScalaTest's Selenium DSL.

    This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This object enables syntax such as the following:

    delete cookie "aName"
    ^
    
    delete all cookies
    ^
    

    Definition Classes
    WebBrowser
  36. def deleteAllCookies()(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Unit

    Permalink

    Delete all cookies in the current domain from web browser.

    Delete all cookies in the current domain from web browser.

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    WebBrowser
  37. def deleteCookie(name: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Unit

    Permalink

    Delete cookie with the specified name from web browser, throws TestFailedException if the specified cookie does not exists.

    Delete cookie with the specified name from web browser, throws TestFailedException if the specified cookie does not exists.

    name

    cookie's name

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    WebBrowser
  38. def emailField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): EmailField

    Permalink

    Finds and returns the first EmailField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a EmailField.

    Finds and returns the first EmailField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a EmailField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the EmailField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a EmailField

  39. def emailField(query: Query)(implicit driver: WebDriver, pos: Position): EmailField

    Permalink

    Finds and returns the first EmailField selected by the specified Query, throws TestFailedException if element not found or the found element is not a EmailField.

    Finds and returns the first EmailField selected by the specified Query, throws TestFailedException if element not found or the found element is not a EmailField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the EmailField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a EmailField

  40. def enter(value: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Unit

    Permalink

    Clears the current active TextField or TextArea, and presses the passed keys.

    Clears the current active TextField or TextArea, and presses the passed keys. Throws TestFailedException if current active is not TextField or TextArea.

    value

    keys to press in current active TextField or TextArea

    Definition Classes
    WebBrowser
  41. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  43. def executeAsyncScript(script: String, args: AnyRef*)(implicit driver: WebDriver): AnyRef

    Permalink

    Executes an asynchronous piece of JavaScript in the context of the currently selected frame or window.

    Executes an asynchronous piece of JavaScript in the context of the currently selected frame or window. Unlike executing synchronous JavaScript, scripts executed with this method must explicitly signal they are finished by invoking the provided callback. This callback is always injected into the executed function as the last argument.

    The first argument passed to the callback function will be used as the script's result. This value will be handled as follows:

    • For an HTML element, this method returns a WebElement
    • For a number, a Long is returned
    • For a boolean, a Boolean is returned
    • For all other cases, a String is returned
    • For an array, return a List<Object> with each object following the rules above. We support nested lists
    • Unless the value is null or there is no return value, in which null is returned

    Script arguments must be a number, boolean, String, WebElement, or a List of any combination of these. An exception will be thrown if the arguments do not meet these criteria. The arguments will be made available to the JavaScript via the "arguments" variable. (Note that although this behavior is specified by Selenium's JavascriptExecutor Javadoc, it may still be possible for the underlying JavascriptExecutor implementation to return an objects of other types. For example, HtmlUnit has been observed to return a java.util.Map for a Javascript object.)

    script

    the JavaScript to execute

    args

    the arguments to the script, may be empty

    returns

    One of Boolean, Long, String, List, WebElement, or null (following Selenium's JavascriptExecutor Javadoc)

    Definition Classes
    WebBrowser
  44. def executeScript[T](script: String, args: AnyRef*)(implicit driver: WebDriver): AnyRef

    Permalink

    Executes JavaScript in the context of the currently selected frame or window.

    Executes JavaScript in the context of the currently selected frame or window. The script fragment provided will be executed as the body of an anonymous function.

    Within the script, you can use document to refer to the current document. Local variables will not be available once the script has finished executing, but global variables will.

    To return a value (e.g. if the script contains a return statement), then the following steps will be taken:

    • For an HTML element, this method returns a WebElement
    • For a decimal, a Double is returned
    • For a non-decimal number, a Long is returned
    • For a boolean, a Boolean is returned
    • For all other cases, a String is returned
    • For an array, return a List<Object> with each object following the rules above. We support nested lists
    • Unless the value is null or there is no return value, in which null is returned

    Script arguments must be a number, boolean, String, WebElement, or a List of any combination of these. An exception will be thrown if the arguments do not meet these criteria. The arguments will be made available to the JavaScript via the "arguments" variable. (Note that although this behavior is specified by Selenium's JavascriptExecutor Javadoc, it may still be possible for the underlying JavascriptExecutor implementation to return an objects of other types. For example, HtmlUnit has been observed to return a java.util.Map for a Javascript object.)

    script

    the JavaScript to execute

    args

    the arguments to the script, may be empty

    returns

    One of Boolean, Long, String, List or WebElement. Or null (following Selenium's JavascriptExecutor Javadoc)

    Definition Classes
    WebBrowser
  45. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  46. def find(queryString: String)(implicit driver: WebDriver): Option[Element]

    Permalink

    Finds and returns the first element selected by the specified string ID or name, wrapped in a Some, or None if no element is selected.

    Finds and returns the first element selected by the specified string ID or name, wrapped in a Some, or None if no element is selected. YYY

    This method will try to lookup by id first. If it cannot find any element with an id equal to the specified queryString, it will then try lookup by name.

    The class of the Element returned will be a subtype of Element if appropriate. For example, if the query selects a text field, the class of the returned Element will be TextField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the Element selected by this query, wrapped in a Some, or None if no Element is selected

    Definition Classes
    WebBrowser
  47. def find(query: Query)(implicit driver: WebDriver): Option[Element]

    Permalink

    Finds and returns the first element selected by the specified Query, wrapped in a Some, or None if no element is selected.

    Finds and returns the first element selected by the specified Query, wrapped in a Some, or None if no element is selected.

    The class of the Element returned will be a subtype of Element if appropriate. For example, if the query selects a text field, the class of the returned Element will be TextField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the Element selected by this query, wrapped in a Some, or None if no Element is selected

    Definition Classes
    WebBrowser
  48. def findAll(queryString: String)(implicit driver: WebDriver): Iterator[Element]

    Permalink

    Returns an Iterator over all Elements selected by the specified string ID or name

    Returns an Iterator over all Elements selected by the specified string ID or name

    This method will try to lookup by id first. If it cannot find any element with an id equal to the specified queryString, it will then try lookup by name.

    The class of the Element returned will be a subtype of Element if appropriate. For example, if the query selects a text field, the class of the returned Element will be TextField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the Iterator over all Elements selected by this query

    Definition Classes
    WebBrowser
  49. def findAll(query: Query)(implicit driver: WebDriver): Iterator[Element]

    Permalink

    Returns an Iterator over all Elements selected by this query.

    Returns an Iterator over all Elements selected by this query.

    The class of the Elements produced by the returned Iterator will be a subtypes of Element if appropriate. For example, if an Elementrepresenting a text field is returned by the Iterator, the class of the returned Element will be TextField.

    If no Elements are selected by this query, this method will return an empty Iterator will be returned.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the Iterator over all Elements selected by this query

    Definition Classes
    WebBrowser
  50. def frame(query: Query)(implicit driver: WebDriver): FrameWebElementTarget

    Permalink

    This method supports switching to a frame by Query in ScalaTest's Selenium DSL.

    This method supports switching to a frame by Query in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    query

    Query used to select WebElement which is contained in the frame to switch to

    returns

    a FrameWebElementTarget instance

    Definition Classes
    WebBrowser
  51. def frame(element: Element): FrameElementTarget

    Permalink

    This method supports switching to a frame by element in ScalaTest's Selenium DSL.

    This method supports switching to a frame by element in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    element

    Element which is contained in the frame to switch to

    returns

    a FrameElementTarget instance

    Definition Classes
    WebBrowser
  52. def frame(element: WebElement): FrameWebElementTarget

    Permalink

    This method supports switching to a frame by web element in ScalaTest's Selenium DSL.

    This method supports switching to a frame by web element in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    element

    WebElement which is contained in the frame to switch to

    returns

    a FrameWebElementTarget instance

    Definition Classes
    WebBrowser
  53. def frame(nameOrId: String): FrameNameOrIdTarget

    Permalink

    This method supports switching to a frame by name or ID in ScalaTest's Selenium DSL.

    This method supports switching to a frame by name or ID in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium 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

    Definition Classes
    WebBrowser
  54. def frame(index: Int): FrameIndexTarget

    Permalink

    This method supports switching to a frame by index in ScalaTest's Selenium DSL.

    This method supports switching to a frame by index in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This class is enables the following syntax:

    switch to frame(0)
              ^
    

    index

    the index of frame to switch to

    returns

    a FrameIndexTarget instance

    Definition Classes
    WebBrowser
  55. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  56. object go

    Permalink

    This object is part of ScalaTest's Selenium DSL.

    This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This object enables syntax such as the following:

    go to "http://www.artima.com"
    ^
    

    Definition Classes
    WebBrowser
  57. def goBack()(implicit driver: WebDriver): Unit

    Permalink

    Go back to previous page.

    Go back to previous page.

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    WebBrowser
  58. def goForward()(implicit driver: WebDriver): Unit

    Permalink

    Go forward to next page.

    Go forward to next page.

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    WebBrowser
  59. def goTo(page: Page)(implicit driver: WebDriver): Unit

    Permalink

    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

    Definition Classes
    WebBrowser
  60. def goTo(url: String)(implicit driver: WebDriver): Unit

    Permalink

    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

    Definition Classes
    WebBrowser
  61. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  62. def id(elementId: String): IdQuery

    Permalink

    Returns an ID query.

    Returns an ID query.

    This method enables syntax such as the following:

    click on id("q")
             ^
    

    Definition Classes
    WebBrowser
  63. def implicitlyWait(timeout: Span)(implicit driver: WebDriver): Unit

    Permalink

    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 ScalaTest's Selenium DSL will wrap in a TestFailedException.

    You can alternatively set this timeout to zero and use ScalaTest's eventually construct.

    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

    Definition Classes
    WebBrowser
  64. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  65. def isScreenshotSupported(implicit driver: WebDriver): Boolean

    Permalink

    Check if screenshot is supported

    Check if screenshot is supported

    driver

    the WebDriver with which to drive the browser

    returns

    true if screenshot is supported, false otherwise

    Definition Classes
    WebBrowser
  66. def linkText(linkText: String): LinkTextQuery

    Permalink

    Returns a link text query.

    Returns a link text query.

    This method enables syntax such as the following:

    click on linkText("???")
             ^
    

    Definition Classes
    WebBrowser
  67. def monthField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): MonthField

    Permalink

    Finds and returns the first MonthField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a MonthField.

    Finds and returns the first MonthField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a MonthField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the MonthField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a MonthField

  68. def monthField(query: Query)(implicit driver: WebDriver, pos: Position): MonthField

    Permalink

    Finds and returns the first MonthField selected by the specified Query, throws TestFailedException if element not found or the found element is not a MonthField.

    Finds and returns the first MonthField selected by the specified Query, throws TestFailedException if element not found or the found element is not a MonthField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the MonthField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a MonthField

  69. def multiSel(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): MultiSel

    Permalink

    Finds and returns the first MultiSel selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a MultiSel.

    Finds and returns the first MultiSel selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a MultiSel.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the MultiSel selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a MultiSel

  70. def multiSel(query: Query)(implicit driver: WebDriver, pos: Position): MultiSel

    Permalink

    Finds and returns the first MultiSel selected by the specified Query, throws TestFailedException if element not found or the found element is not a MultiSel.

    Finds and returns the first MultiSel selected by the specified Query, throws TestFailedException if element not found or the found element is not a MultiSel.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the MultiSel selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a MultiSel

  71. def name(elementName: String): NameQuery

    Permalink

    Returns a name query.

    Returns a name query.

    This method enables syntax such as the following:

    click on name("q")
             ^
    

    Definition Classes
    WebBrowser
  72. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  73. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  74. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  75. def numberField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): NumberField

    Permalink

    Finds and returns the first NumberField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a NumberField.

    Finds and returns the first NumberField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a NumberField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the NumberField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a NumberField

  76. def numberField(query: Query)(implicit driver: WebDriver, pos: Position): NumberField

    Permalink

    Finds and returns the first NumberField selected by the specified Query, throws TestFailedException if element not found or the found element is not a NumberField.

    Finds and returns the first NumberField selected by the specified Query, throws TestFailedException if element not found or the found element is not a NumberField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the NumberField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a NumberField

  77. def pageSource(implicit driver: WebDriver): String

    Permalink

    Returns the source of the current page.

    Returns the source of the current page.

    This method invokes getPageSource on the passed WebDriver and returns the result.

    driver

    the WebDriver with which to drive the browser

    returns

    the source of the current page

    Definition Classes
    WebBrowser
  78. def pageTitle(implicit driver: WebDriver): String

    Permalink

    Returns the title of the current page, or the empty string if the current page has no title.

    Returns the title of the current page, or the empty string if the current page has no title.

    driver

    the WebDriver with which to drive the browser

    returns

    the current page's title, or the empty string if the current page has no title

    Definition Classes
    WebBrowser
  79. def partialLinkText(partialLinkText: String): PartialLinkTextQuery

    Permalink

    Returns a partial link text query.

    Returns a partial link text query.

    This method enables syntax such as the following:

    click on partialLinkText("???")
             ^
    

    Definition Classes
    WebBrowser
  80. def pressKeys(value: String)(implicit driver: WebDriver): Unit

    Permalink

    Press the passed keys to current active element.

    Press the passed keys to current active element.

    value

    keys to press in current active element

    Definition Classes
    WebBrowser
  81. def pwdField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): PasswordField

    Permalink

    Finds and returns the first PasswordField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a PasswordField.

    Finds and returns the first PasswordField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a PasswordField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the PasswordField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a PasswordField

  82. def pwdField(query: Query)(implicit driver: WebDriver, pos: Position): PasswordField

    Permalink

    Finds and returns the first PasswordField selected by the specified Query, throws TestFailedException if element not found or the found element is not a PasswordField.

    Finds and returns the first PasswordField selected by the specified Query, throws TestFailedException if element not found or the found element is not a PasswordField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the PasswordField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a PasswordField

  83. def quit()(implicit driver: WebDriver): Unit

    Permalink

    Close all windows, and exit the driver.

    Close all windows, and exit the driver.

    driver

    the WebDriver on which to quit.

    Definition Classes
    WebBrowser
  84. def radioButton(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): RadioButton

    Permalink

    Finds and returns the first RadioButton selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a RadioButton.

    Finds and returns the first RadioButton selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a RadioButton.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the RadioButton selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a RadioButton

  85. def radioButton(query: Query)(implicit driver: WebDriver, pos: Position): RadioButton

    Permalink

    Finds and returns the first RadioButton selected by the specified Query, throws TestFailedException if element not found or the found element is not a RadioButton.

    Finds and returns the first RadioButton selected by the specified Query, throws TestFailedException if element not found or the found element is not a RadioButton.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the RadioButton selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a RadioButton

  86. def radioButtonGroup(groupName: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): RadioButtonGroup

    Permalink

    Finds and returns RadioButtonGroup selected by the specified group name, throws TestFailedException if no element with the specified group name is found, or found any element with the specified group name but not a RadioButton

    Finds and returns RadioButtonGroup selected by the specified group name, throws TestFailedException if no element with the specified group name is found, or found any element with the specified group name but not a RadioButton

    groupName

    the group name with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the RadioButtonGroup selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if no element with the specified group name is found, or found any element with the specified group name but not a RadioButton

  87. def rangeField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): RangeField

    Permalink

    Finds and returns the first RangeField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a RangeField.

    Finds and returns the first RangeField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a RangeField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the RangeField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a RangeField

  88. def rangeField(query: Query)(implicit driver: WebDriver, pos: Position): RangeField

    Permalink

    Finds and returns the first RangeField selected by the specified Query, throws TestFailedException if element not found or the found element is not a RangeField.

    Finds and returns the first RangeField selected by the specified Query, throws TestFailedException if element not found or the found element is not a RangeField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the RangeField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a RangeField

  89. def reloadPage()(implicit driver: WebDriver): Unit

    Permalink

    Reload the current page.

    Reload the current page.

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    WebBrowser
  90. def searchField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): SearchField

    Permalink

    Finds and returns the first SearchField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a SearchField.

    Finds and returns the first SearchField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a SearchField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the SearchField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a SearchField

  91. def searchField(query: Query)(implicit driver: WebDriver, pos: Position): SearchField

    Permalink

    Finds and returns the first SearchField selected by the specified Query, throws TestFailedException if element not found or the found element is not a SearchField.

    Finds and returns the first SearchField selected by the specified Query, throws TestFailedException if element not found or the found element is not a SearchField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the SearchField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a SearchField

  92. def setCaptureDir(targetDirPath: String): Unit

    Permalink

    Set capture directory.

    Set capture directory.

    targetDirPath

    the path of capture directory

    Definition Classes
    WebBrowser
  93. def setScriptTimeout(timeout: Span)(implicit driver: WebDriver): Unit

    Permalink

    Sets the amount of time to wait for an asynchronous script to finish execution before throwing an exception.

    Sets the amount of time to wait for an asynchronous script to finish execution before throwing an exception.

    timeout

    the amount of time to wait for an asynchronous script to finish execution before throwing exception

    Definition Classes
    WebBrowser
  94. def singleSel(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): SingleSel

    Permalink

    Finds and returns the first SingleSel selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a SingleSel.

    Finds and returns the first SingleSel selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a SingleSel.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the SingleSel selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a SingleSel

  95. def singleSel(query: Query)(implicit driver: WebDriver, pos: Position): SingleSel

    Permalink

    Finds and returns the first SingleSel selected by the specified Query, throws TestFailedException if element not found or the found element is not a SingleSel.

    Finds and returns the first SingleSel selected by the specified Query, throws TestFailedException if element not found or the found element is not a SingleSel.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the SingleSel selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a SingleSel

  96. def submit()(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Unit

    Permalink

    Submit the form where current active element belongs to, and throws TestFailedException if current active element is not in a form or underlying WebDriver encounters problem when submitting the form.

    Submit the form where current active element belongs to, and throws TestFailedException if current active element is not in a form or underlying WebDriver encounters problem when submitting the form. If this causes the current page to change, this call will block until the new page is loaded.

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if current active element is not in a form or underlying WebDriver encounters problem when submitting the form.

  97. object switch

    Permalink

    This object is part of ScalaTest's Selenium DSL.

    This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

    This object enables syntax such as the following:

    switch to alertBox
    ^
    

    Definition Classes
    WebBrowser
  98. def switchTo[T](target: SwitchTarget[T])(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): T

    Permalink

    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

    Definition Classes
    WebBrowser
  99. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  100. def tagName(tagName: String): TagNameQuery

    Permalink

    Returns a tag name query.

    Returns a tag name query.

    This method enables syntax such as the following:

    click on tagName("???")
             ^
    

    Definition Classes
    WebBrowser
  101. def telField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TelField

    Permalink

    Finds and returns the first TelField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a TelField.

    Finds and returns the first TelField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a TelField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the TelField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a TelField

  102. def telField(query: Query)(implicit driver: WebDriver, pos: Position): TelField

    Permalink

    Finds and returns the first TelField selected by the specified Query, throws TestFailedException if element not found or the found element is not a TelField.

    Finds and returns the first TelField selected by the specified Query, throws TestFailedException if element not found or the found element is not a TelField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the TelField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a TelField

  103. def textArea(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TextArea

    Permalink

    Finds and returns the first TextArea selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a TextArea.

    Finds and returns the first TextArea selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a TextArea.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the TextArea selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a TextArea

  104. def textArea(query: Query)(implicit driver: WebDriver, pos: Position): TextArea

    Permalink

    Finds and returns the first TextArea selected by the specified Query, throws TestFailedException if element not found or the found element is not a TextArea.

    Finds and returns the first TextArea selected by the specified Query, throws TestFailedException if element not found or the found element is not a TextArea.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the TextArea selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a TextArea

  105. def textField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TextField

    Permalink

    Finds and returns the first TextField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a TextField.

    Finds and returns the first TextField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a TextField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the TextField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a TextField

  106. def textField(query: Query)(implicit driver: WebDriver, pos: Position): TextField

    Permalink

    Finds and returns the first TextField selected by the specified Query, throws TestFailedException if element not found or the found element is not a TextField.

    Finds and returns the first TextField selected by the specified Query, throws TestFailedException if element not found or the found element is not a TextField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the TextField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a TextField

  107. def timeField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TimeField

    Permalink

    Finds and returns the first TimeField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a TimeField.

    Finds and returns the first TimeField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a TimeField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the TimeField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a TimeField

  108. def timeField(query: Query)(implicit driver: WebDriver, pos: Position): TimeField

    Permalink

    Finds and returns the first TimeField selected by the specified Query, throws TestFailedException if element not found or the found element is not a TimeField.

    Finds and returns the first TimeField selected by the specified Query, throws TestFailedException if element not found or the found element is not a TimeField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the TimeField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a TimeField

  109. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  110. def urlField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): UrlField

    Permalink

    Finds and returns the first UrlField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a UrlField.

    Finds and returns the first UrlField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a UrlField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the UrlField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a UrlField

  111. def urlField(query: Query)(implicit driver: WebDriver, pos: Position): UrlField

    Permalink

    Finds and returns the first UrlField selected by the specified Query, throws TestFailedException if element not found or the found element is not a UrlField.

    Finds and returns the first UrlField selected by the specified Query, throws TestFailedException if element not found or the found element is not a UrlField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the UrlField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a UrlField

  112. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  115. implicit val webDriver: SafariDriver

    Permalink

    WebBrowser subtrait that defines an implicit WebDriver for Safari (an org.openqa.selenium.safari.SafariDriver).

    WebBrowser subtrait that defines an implicit WebDriver for Safari (an org.openqa.selenium.safari.SafariDriver).

    Definition Classes
    SafariDriver
  116. def weekField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): WeekField

    Permalink

    Finds and returns the first WeekField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a WeekField.

    Finds and returns the first WeekField selected by the specified string ID or name, throws TestFailedException if element not found or the found element is not a WeekField.

    queryString

    the string with which to search, first by ID then by name

    driver

    the WebDriver with which to drive the browser

    returns

    the WeekField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a WeekField

  117. def weekField(query: Query)(implicit driver: WebDriver, pos: Position): WeekField

    Permalink

    Finds and returns the first WeekField selected by the specified Query, throws TestFailedException if element not found or the found element is not a WeekField.

    Finds and returns the first WeekField selected by the specified Query, throws TestFailedException if element not found or the found element is not a WeekField.

    query

    the Query with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the WeekField selected by this query

    Definition Classes
    WebBrowser
    Exceptions thrown

    TestFailedException if element not found or found element is not a WeekField

  118. def window(nameOrHandle: String): WindowTarget

    Permalink

    This class supports switching to a window by name or handle in ScalaTest's Selenium DSL.

    This class supports switching to a window by name or handle in ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium 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

    Definition Classes
    WebBrowser
  119. def windowHandle(implicit driver: WebDriver): String

    Permalink

    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

    Definition Classes
    WebBrowser
  120. def windowHandles(implicit driver: WebDriver): Set[String]

    Permalink

    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

    Definition Classes
    WebBrowser
  121. def withScreenshot[T](fun: ⇒ T)(implicit driver: WebDriver): T

    Permalink

    Execute the given function, if ModifiableMessage exception is thrown from the given function, a screenshot will be captured automatically into capture directory, which by default is system property's java.io.tmpdir.

    Execute the given function, if ModifiableMessage exception is thrown from the given function, a screenshot will be captured automatically into capture directory, which by default is system property's java.io.tmpdir. You can change capture directory by calling setCaptureDir

    fun

    function to execute

    returns

    the value returned by fun

    Definition Classes
    WebBrowser
  122. def xpath(xpath: String): XPathQuery

    Permalink

    Returns an XPath query.

    Returns an XPath query.

    This method enables syntax such as the following:

    click on xpath("???")
             ^
    

    Definition Classes
    WebBrowser

Inherited from ScreenshotCapturer

Inherited from Driver

Inherited from WebBrowser

Inherited from AnyRef

Inherited from Any

Ungrouped