object WebBrowser extends WebBrowser
Companion object that facilitates the importing of WebBrowser members as
an alternative to mixing it in. One use case is to import WebBrowser members so you can use
them in the Scala interpreter.
- Alphabetic
- By Inheritance
- WebBrowser
- WebBrowser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
-   final  class ActiveElementTarget extends SwitchTarget[Element]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 WebBrowserfor an overview of the Selenium DSL.This class is enables the following syntax: switch to activeElement ^- Definition Classes
- WebBrowser
 
-   final  class AlertTarget extends SwitchTarget[Alert]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 WebBrowserfor an overview of the Selenium DSL.This class is enables the following syntax: switch to alertBox ^- Definition Classes
- WebBrowser
 
-   final  class Checkbox extends ElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This class enables syntax such as the following: checkbox("cbx1").select()- Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExeptionif the passed- WebElementdoes not represent a checkbox
 
-    case class ClassNameQuery(queryString: String) extends Query with Product with SerializableA 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
 
-   final  class ColorField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a color field
 
-    class CookiesNoun extends AnyRefThis class is part of the ScalaTest's Selenium DSL. This class is part of the ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.- Definition Classes
- WebBrowser
 
-    case class CssSelectorQuery(queryString: String) extends Query with Product with SerializableA 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
 
-   final  class DateField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a date field
 
-   final  class DateTimeField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a datetime field
 
-   final  class DateTimeLocalField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a datetime-local field
 
-   final  class DefaultContentTarget extends SwitchTarget[WebDriver]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 WebBrowserfor an overview of the Selenium DSL.This class is enables the following syntax: switch to defaultContent ^- Definition Classes
- WebBrowser
 
-    case class Dimension(width: Int, height: Int) extends Product with SerializableA dimension containing the width and height of a screen element. A dimension containing the width and height of a screen element. - Definition Classes
- WebBrowser
 
-   sealed  trait Element extends AnyRefWrapper 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 wrappedWebElementvia theunderlyingmethod.- Definition Classes
- WebBrowser
 
-   final  class EmailField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This class enables syntax such as the following: emailField("q").value should be ("foo@bar.com") - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExeptionif the passed- WebElementdoes not represent a email field
 
-   final  class FrameElementTarget extends SwitchTarget[WebDriver]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 WebBrowserfor an overview of the Selenium DSL.- Definition Classes
- WebBrowser
 
-   final  class FrameIndexTarget extends SwitchTarget[WebDriver]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 WebBrowserfor an overview of the Selenium DSL.This class is enables the following syntax: switch to frame(0) ^- Definition Classes
- WebBrowser
 
-   final  class FrameNameOrIdTarget extends SwitchTarget[WebDriver]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 WebBrowserfor an overview of the Selenium DSL.This class is enables the following syntax: switch to frame("name") ^- Definition Classes
- WebBrowser
 
-   final  class FrameWebElementTarget extends SwitchTarget[WebDriver]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 WebBrowserfor an overview of the Selenium DSL.- Definition Classes
- WebBrowser
 
-    case class IdQuery(queryString: String) extends Query with Product with SerializableAn 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
 
-    case class LinkTextQuery(queryString: String) extends Query with Product with SerializableA 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
 
-   final  class MonthField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a month field
 
-    class MultiSel extends ElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This class enables syntax such as the following: multiSel("select2").clear("option5") - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExeptionif the passed- WebElementdoes not represent a multiple selection list
 
-    class MultiSelOptionSeq extends IndexedSeq[String]This class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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 valuesmethod ofMultiSel.MultiSelOptionSeqis an immutableIndexedSeq[String]that wraps an underlying immutableIndexedSeq[String]and adds two methods,+and-, to facilitate the+=syntax for setting additional options of theMultiSel. The Scala compiler will rewrite:multiSel("select2").values += "option5" To: multiSel("select2").values = multiSel("select2").values + "option5" Thus, first a new MultiSelOptionSeqis created by invoking the+method on theMultiSelOptionSeqreturned byvalues, and that result is passed to thevalues_=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
 
-    case class NameQuery(queryString: String) extends Query with Product with SerializableA 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
 
-   final  class NumberField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a number field
 
-    case class PartialLinkTextQuery(queryString: String) extends Query with Product with SerializableA 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
 
-   final  class PasswordField extends ElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a password field
 
-    case class Point(x: Int, y: Int) extends Product with SerializableA point containing an XY screen location. A point containing an XY screen location. - Definition Classes
- WebBrowser
 
-   sealed  trait Query extends Product with SerializableThis trait is part of ScalaTest's Selenium DSL. This trait is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
 
-   final  class RadioButton extends ElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a text area
 
-   final  class RadioButtonGroup extends AnyRefThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif no radio button with the passed- groupNameare found
 
-   final  class RangeField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a range field
 
-   final  class SearchField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a search field
 
-    class SingleSel extends ElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This class enables syntax such as the following: singleSel.clear() - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExeptionif the passed- WebElementdoes not represent a single selection list
 
-   sealed abstract  class SwitchTarget[T] extends AnyRefThis 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 WebBrowserfor an overview of the Selenium DSL.One subclass of SwitchTargetexists 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
 
-    case class TagNameQuery(queryString: String) extends Query with Product with SerializableA 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
 
-   final  class TelField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a tel field
 
-   final  class TextArea extends ElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a text area
 
-   final  class TextField extends ElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a text field
 
-   final  class TimeField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a time field
 
-   final  class UrlField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a url field
 
-    trait ValueElement extends Element- Definition Classes
- WebBrowser
 
-   final  class WeekField extends ValueElementThis class is part of ScalaTest's Selenium DSL. This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor 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
- TestFailedExeptionif the passed- WebElementdoes not represent a week field
 
-   final  class WindowTarget extends SwitchTarget[WebDriver]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 WebBrowserfor an overview of the Selenium DSL.This class is enables the following syntax: switch to window(windowHandle) ^- Definition Classes
- WebBrowser
 
-   final  class WrappedCookie extends AnyRefWrapper 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 wrappedCookievia theunderlyingmethod.- Definition Classes
- WebBrowser
 
-    case class XPathQuery(queryString: String) extends Query with Product with SerializableAn 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
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-    val activeElement: ActiveElementTargetThis 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 WebBrowserfor an overview of the Selenium DSL.This class is enables the following syntax: switch to activeElement ^- Definition Classes
- WebBrowser
 
-    def addCookie(name: String, value: String, path: String = "/", expiry: Date = null, domain: String = null, secure: Boolean = false)(implicit driver: WebDriver): UnitAdd 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 - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    val alertBox: AlertTargetThis 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 WebBrowserfor an overview of the Selenium DSL.This class is enables the following syntax: switch to alertBox ^- Definition Classes
- WebBrowser
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def captureTo(fileName: String)(implicit driver: WebDriver): UnitCapture 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
 
-    def checkbox(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): CheckboxFinds and returns the first Checkboxselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aCheckbox.Finds and returns the first Checkboxselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aCheckbox.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - Checkboxselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- Checkbox
 
-    def checkbox(query: Query)(implicit driver: WebDriver, pos: Position): CheckboxFinds and returns the first Checkboxselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aCheckbox.Finds and returns the first Checkboxselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aCheckbox.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - Checkboxselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- Checkbox
 
-    def className(className: String): ClassNameQueryReturns a class name query. Returns a class name query. This method enables syntax such as the following: click on className("???") ^- Definition Classes
- WebBrowser
 
-    def clickOn(element: Element): UnitClick on the specified Element
-    def clickOn(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): UnitClick on the first Elementselected by the specified string ID or nameClick on the first Elementselected by the specified string ID or name- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def clickOn(query: Query)(implicit driver: WebDriver): UnitClick on the first Elementselected by the specifiedQueryClick on the first Elementselected by the specifiedQuery- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def clickOn(element: WebElement): UnitClick on the specified WebElement
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
 
-    def close()(implicit driver: WebDriver): UnitCloses 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 - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def colorField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): ColorFieldFinds and returns the first ColorFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aColorField.Finds and returns the first ColorFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aColorField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - ColorFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- ColorField
 
-    def colorField(query: Query)(implicit driver: WebDriver, pos: Position): ColorFieldFinds and returns the first ColorFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aColorField.Finds and returns the first ColorFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aColorField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - ColorFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- ColorField
 
-    def cookie(name: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): WrappedCookieGet 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
 
-    val cookies: CookiesNounThis field supports cookie deletion in ScalaTest's Selenium DSL. This field supports cookie deletion in ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This field enables the following syntax: delete all cookies ^- Definition Classes
- WebBrowser
 
-    def cssSelector(cssSelector: String): CssSelectorQueryReturns a CSS selector query. Returns a CSS selector query. This method enables syntax such as the following: click on cssSelector("???") ^- Definition Classes
- WebBrowser
 
-    def currentUrl(implicit driver: WebDriver): StringReturns the URL of the current page. Returns the URL of the current page. This method invokes getCurrentUrlon the passedWebDriverand returns the result.- driver
- the - WebDriverwith which to drive the browser
- returns
- the URL of the current page 
 - Definition Classes
- WebBrowser
 
-    def dateField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): DateFieldFinds and returns the first DateFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aDateField.Finds and returns the first DateFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aDateField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - DateFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- DateField
 
-    def dateField(query: Query)(implicit driver: WebDriver, pos: Position): DateFieldFinds and returns the first DateFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aDateField.Finds and returns the first DateFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aDateField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - DateFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- DateField
 
-    def dateTimeField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): DateTimeFieldFinds and returns the first DateTimeFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aDateTimeField.Finds and returns the first DateTimeFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aDateTimeField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - DateTimeFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- DateTimeField
 
-    def dateTimeField(query: Query)(implicit driver: WebDriver, pos: Position): DateTimeFieldFinds and returns the first DateTimeFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aDateTimeField.Finds and returns the first DateTimeFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aDateTimeField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - DateTimeFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- DateTimeField
 
-    def dateTimeLocalField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): DateTimeLocalFieldFinds and returns the first DateTimeLocalFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aDateTimeLocalField.Finds and returns the first DateTimeLocalFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aDateTimeLocalField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - DateTimeLocalFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- DateTimeLocalField
 
-    def dateTimeLocalField(query: Query)(implicit driver: WebDriver, pos: Position): DateTimeLocalFieldFinds and returns the first DateTimeLocalFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aDateTimeLocalField.Finds and returns the first DateTimeLocalFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aDateTimeLocalField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - DateTimeLocalFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- DateTimeLocalField
 
-    val defaultContent: DefaultContentTargetThis 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 WebBrowserfor an overview of the Selenium DSL.This class is enables the following syntax: switch to defaultContent ^- Definition Classes
- WebBrowser
 
-    def deleteAllCookies()(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): UnitDelete all cookies in the current domain from web browser. Delete all cookies in the current domain from web browser. - driver
- the - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def deleteCookie(name: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): UnitDelete 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 - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def emailField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): EmailFieldFinds and returns the first EmailFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aEmailField.Finds and returns the first EmailFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aEmailField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - EmailFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- EmailField
 
-    def emailField(query: Query)(implicit driver: WebDriver, pos: Position): EmailFieldFinds and returns the first EmailFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aEmailField.Finds and returns the first EmailFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aEmailField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - EmailFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- EmailField
 
-    def enter(value: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): UnitClears the current active TextFieldorTextArea, and presses the passed keys.Clears the current active TextFieldorTextArea, and presses the passed keys. ThrowsTestFailedExceptionif current active is notTextFieldorTextArea.- value
- keys to press in current active - TextFieldor- TextArea
 - Definition Classes
- WebBrowser
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-    def executeAsyncScript(script: String, args: AnyRef*)(implicit driver: WebDriver): AnyRefExecutes 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 JavascriptExecutorimplementation to return an objects of other types. For example,HtmlUnithas been observed to return ajava.util.Mapfor 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
 
-    def executeScript[T](script: String, args: AnyRef*)(implicit driver: WebDriver): AnyRefExecutes 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 documentto 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 JavascriptExecutorimplementation to return an objects of other types. For example,HtmlUnithas been observed to return ajava.util.Mapfor 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
 
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
 
-    def find(queryString: String)(implicit driver: WebDriver): Option[Element]Finds and returns the first element selected by the specified string ID or name, wrapped in a Some, orNoneif no element is selected.Finds and returns the first element selected by the specified string ID or name, wrapped in a Some, orNoneif no element is selected. YYYThis 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 Elementreturned will be a subtype ofElementif appropriate. For example, if the query selects a text field, the class of the returnedElementwill beTextField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - Elementselected by this query, wrapped in a- Some, or- Noneif no- Elementis selected
 - Definition Classes
- WebBrowser
 
-    def find(query: Query)(implicit driver: WebDriver): Option[Element]Finds and returns the first element selected by the specified Query, wrapped in aSome, orNoneif no element is selected.Finds and returns the first element selected by the specified Query, wrapped in aSome, orNoneif no element is selected.The class of the Elementreturned will be a subtype ofElementif appropriate. For example, if the query selects a text field, the class of the returnedElementwill beTextField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - Elementselected by this query, wrapped in a- Some, or- Noneif no- Elementis selected
 - Definition Classes
- WebBrowser
 
-    def findAll(queryString: String)(implicit driver: WebDriver): Iterator[Element]Returns an Iteratorover allElements selected by the specified string ID or nameReturns an Iteratorover allElements selected by the specified string ID or nameThis 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 Elementreturned will be a subtype ofElementif appropriate. For example, if the query selects a text field, the class of the returnedElementwill beTextField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - Iteratorover all- Elements selected by this query
 - Definition Classes
- WebBrowser
 
-    def findAll(query: Query)(implicit driver: WebDriver): Iterator[Element]Returns an Iteratorover allElements selected by this query.Returns an Iteratorover allElements selected by this query.The class of the Elements produced by the returnedIteratorwill be a subtypes ofElementif appropriate. For example, if anElementrepresenting a text field is returned by theIterator, the class of the returnedElementwill beTextField.If no Elementsare selected by this query, this method will return an emptyIteratorwill be returned.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - Iteratorover all- Elements selected by this query
 - Definition Classes
- WebBrowser
 
-    def frame(query: Query)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): FrameWebElementTargetThis method supports switching to a frame by Queryin ScalaTest's Selenium DSL.This method supports switching to a frame by Queryin ScalaTest's Selenium DSL. Please see the documentation forWebBrowserfor an overview of the Selenium DSL.- query
- Queryused to select- WebElementwhich is contained in the frame to switch to
- returns
- a FrameWebElementTarget instance 
 - Definition Classes
- WebBrowser
 
-    def frame(element: Element): FrameElementTargetThis 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 WebBrowserfor an overview of the Selenium DSL.- element
- Elementwhich is contained in the frame to switch to
- returns
- a FrameElementTarget instance 
 - Definition Classes
- WebBrowser
 
-    def frame(element: WebElement): FrameWebElementTargetThis 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 WebBrowserfor an overview of the Selenium DSL.- element
- WebElementwhich is contained in the frame to switch to
- returns
- a FrameWebElementTarget instance 
 - Definition Classes
- WebBrowser
 
-    def frame(nameOrId: String): FrameNameOrIdTargetThis 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 WebBrowserfor 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
 
-    def frame(index: Int): FrameIndexTargetThis 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 WebBrowserfor 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
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def goBack()(implicit driver: WebDriver): UnitGo back to previous page. Go back to previous page. - driver
- the - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def goForward()(implicit driver: WebDriver): UnitGo forward to next page. Go forward to next page. - driver
- the - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def goTo(page: Page)(implicit driver: WebDriver): UnitSends the browser to the URL contained in the passed Pageobject.Sends the browser to the URL contained in the passed Pageobject.Here's an example: goTo(homePage) - page
- the - Pageobject containing the URL to which to send the browser
- driver
- the - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def goTo(url: String)(implicit driver: WebDriver): UnitSends 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 - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def id(elementId: String): IdQueryReturns an ID query. Returns an ID query. This method enables syntax such as the following: click on id("q") ^- Definition Classes
- WebBrowser
 
-    def implicitlyWait(timeout: Span)(implicit driver: WebDriver): UnitSets 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 aTestFailedException.You can alternatively set this timeout to zero and use ScalaTest's eventuallyconstruct.This method invokes manage.timeouts.implicitlyWaiton the passedWebDriver. See the documentation of Selenium'sWebDriver#Timeoutsinterface for more information.- timeout
- the time span to implicitly wait 
- driver
- the - WebDriveron which to set the implicit wait
 - Definition Classes
- WebBrowser
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-    def isScreenshotSupported(implicit driver: WebDriver): BooleanCheck if screenshot is supported Check if screenshot is supported - driver
- the - WebDriverwith which to drive the browser
- returns
- true if screenshot is supported, false otherwise 
 - Definition Classes
- WebBrowser
 
-    def linkText(linkText: String): LinkTextQueryReturns a link text query. Returns a link text query. This method enables syntax such as the following: click on linkText("???") ^- Definition Classes
- WebBrowser
 
-    def monthField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): MonthFieldFinds and returns the first MonthFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aMonthField.Finds and returns the first MonthFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aMonthField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - MonthFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- MonthField
 
-    def monthField(query: Query)(implicit driver: WebDriver, pos: Position): MonthFieldFinds and returns the first MonthFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aMonthField.Finds and returns the first MonthFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aMonthField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - MonthFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- MonthField
 
-    def multiSel(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): MultiSelFinds and returns the first MultiSelselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aMultiSel.Finds and returns the first MultiSelselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aMultiSel.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - MultiSelselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- MultiSel
 
-    def multiSel(query: Query)(implicit driver: WebDriver, pos: Position): MultiSelFinds and returns the first MultiSelselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aMultiSel.Finds and returns the first MultiSelselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aMultiSel.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - MultiSelselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- MultiSel
 
-    def name(elementName: String): NameQueryReturns a name query. Returns a name query. This method enables syntax such as the following: click on name("q") ^- Definition Classes
- WebBrowser
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native()
 
-    def numberField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): NumberFieldFinds and returns the first NumberFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aNumberField.Finds and returns the first NumberFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aNumberField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - NumberFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- NumberField
 
-    def numberField(query: Query)(implicit driver: WebDriver, pos: Position): NumberFieldFinds and returns the first NumberFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aNumberField.Finds and returns the first NumberFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aNumberField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - NumberFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- NumberField
 
-    def pageSource(implicit driver: WebDriver): StringReturns the source of the current page. Returns the source of the current page. This method invokes getPageSourceon the passedWebDriverand returns the result.- driver
- the - WebDriverwith which to drive the browser
- returns
- the source of the current page 
 - Definition Classes
- WebBrowser
 
-    def pageTitle(implicit driver: WebDriver): StringReturns 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 - WebDriverwith 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
 
-    def partialLinkText(partialLinkText: String): PartialLinkTextQueryReturns 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
 
-    def pressKeys(value: String)(implicit driver: WebDriver): UnitPress 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
 
-    def pwdField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): PasswordFieldFinds and returns the first PasswordFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aPasswordField.Finds and returns the first PasswordFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aPasswordField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - PasswordFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- PasswordField
 
-    def pwdField(query: Query)(implicit driver: WebDriver, pos: Position): PasswordFieldFinds and returns the first PasswordFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aPasswordField.Finds and returns the first PasswordFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aPasswordField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - PasswordFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- PasswordField
 
-    def quit()(implicit driver: WebDriver): UnitClose all windows, and exit the driver. Close all windows, and exit the driver. - driver
- the - WebDriveron which to quit.
 - Definition Classes
- WebBrowser
 
-    def radioButton(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): RadioButtonFinds and returns the first RadioButtonselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aRadioButton.Finds and returns the first RadioButtonselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aRadioButton.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - RadioButtonselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- RadioButton
 
-    def radioButton(query: Query)(implicit driver: WebDriver, pos: Position): RadioButtonFinds and returns the first RadioButtonselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aRadioButton.Finds and returns the first RadioButtonselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aRadioButton.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - RadioButtonselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- RadioButton
 
-    def radioButtonGroup(groupName: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): RadioButtonGroupFinds and returns RadioButtonGroupselected by the specified group name, throwsTestFailedExceptionif no element with the specified group name is found, or found any element with the specified group name but not aRadioButtonFinds and returns RadioButtonGroupselected by the specified group name, throwsTestFailedExceptionif no element with the specified group name is found, or found any element with the specified group name but not aRadioButton- groupName
- the group name with which to search 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - RadioButtonGroupselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif no element with the specified group name is found, or found any element with the specified group name but not a- RadioButton
 
-    def rangeField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): RangeFieldFinds and returns the first RangeFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aRangeField.Finds and returns the first RangeFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aRangeField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - RangeFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- RangeField
 
-    def rangeField(query: Query)(implicit driver: WebDriver, pos: Position): RangeFieldFinds and returns the first RangeFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aRangeField.Finds and returns the first RangeFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aRangeField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - RangeFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- RangeField
 
-    def reloadPage()(implicit driver: WebDriver): UnitReload the current page. Reload the current page. - driver
- the - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def searchField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): SearchFieldFinds and returns the first SearchFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aSearchField.Finds and returns the first SearchFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aSearchField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - SearchFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- SearchField
 
-    def searchField(query: Query)(implicit driver: WebDriver, pos: Position): SearchFieldFinds and returns the first SearchFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aSearchField.Finds and returns the first SearchFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aSearchField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - SearchFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- SearchField
 
-    def setCaptureDir(targetDirPath: String): UnitSet capture directory. 
-    def setScriptTimeout(timeout: Span)(implicit driver: WebDriver): UnitSets 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
 
-    def singleSel(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): SingleSelFinds and returns the first SingleSelselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aSingleSel.Finds and returns the first SingleSelselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aSingleSel.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - SingleSelselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- SingleSel
 
-    def singleSel(query: Query)(implicit driver: WebDriver, pos: Position): SingleSelFinds and returns the first SingleSelselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aSingleSel.Finds and returns the first SingleSelselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aSingleSel.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - SingleSelselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- SingleSel
 
-    def submit()(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): UnitSubmit 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 - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif current active element is not in a form or underlying WebDriver encounters problem when submitting the form.
 
-    def switchTo[T](target: SwitchTarget[T])(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TSwitch to the specified SwitchTargetSwitch to the specified SwitchTarget- target
- the - SwitchTargetto switch to
- driver
- the - WebDriverwith which to drive the browser
- returns
- instance of specified - SwitchTarget's type parameter
 - Definition Classes
- WebBrowser
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def tagName(tagName: String): TagNameQueryReturns a tag name query. Returns a tag name query. This method enables syntax such as the following: click on tagName("???") ^- Definition Classes
- WebBrowser
 
-    def telField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TelFieldFinds and returns the first TelFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aTelField.Finds and returns the first TelFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aTelField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - TelFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- TelField
 
-    def telField(query: Query)(implicit driver: WebDriver, pos: Position): TelFieldFinds and returns the first TelFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aTelField.Finds and returns the first TelFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aTelField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - TelFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- TelField
 
-    def textArea(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TextAreaFinds and returns the first TextAreaselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aTextArea.Finds and returns the first TextAreaselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aTextArea.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - TextAreaselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- TextArea
 
-    def textArea(query: Query)(implicit driver: WebDriver, pos: Position): TextAreaFinds and returns the first TextAreaselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aTextArea.Finds and returns the first TextAreaselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aTextArea.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - TextAreaselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- TextArea
 
-    def textField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TextFieldFinds and returns the first TextFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aTextField.Finds and returns the first TextFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aTextField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - TextFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- TextField
 
-    def textField(query: Query)(implicit driver: WebDriver, pos: Position): TextFieldFinds and returns the first TextFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aTextField.Finds and returns the first TextFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aTextField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - TextFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- TextField
 
-    def timeField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TimeFieldFinds and returns the first TimeFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aTimeField.Finds and returns the first TimeFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aTimeField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - TimeFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- TimeField
 
-    def timeField(query: Query)(implicit driver: WebDriver, pos: Position): TimeFieldFinds and returns the first TimeFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aTimeField.Finds and returns the first TimeFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aTimeField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - TimeFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- TimeField
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-    def urlField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): UrlFieldFinds and returns the first UrlFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aUrlField.Finds and returns the first UrlFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aUrlField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - UrlFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- UrlField
 
-    def urlField(query: Query)(implicit driver: WebDriver, pos: Position): UrlFieldFinds and returns the first UrlFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aUrlField.Finds and returns the first UrlFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aUrlField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - UrlFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- UrlField
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-    def weekField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): WeekFieldFinds and returns the first WeekFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aWeekField.Finds and returns the first WeekFieldselected by the specified string ID or name, throwsTestFailedExceptionif element not found or the found element is not aWeekField.- queryString
- the string with which to search, first by ID then by name 
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - WeekFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- WeekField
 
-    def weekField(query: Query)(implicit driver: WebDriver, pos: Position): WeekFieldFinds and returns the first WeekFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aWeekField.Finds and returns the first WeekFieldselected by the specifiedQuery, throwsTestFailedExceptionif element not found or the found element is not aWeekField.- query
- the - Querywith which to search
- driver
- the - WebDriverwith which to drive the browser
- returns
- the - WeekFieldselected by this query
 - Definition Classes
- WebBrowser
- Exceptions thrown
- TestFailedExceptionif element not found or found element is not a- WeekField
 
-    def window(nameOrHandle: String): WindowTargetThis 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 WebBrowserfor 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
 
-    def windowHandle(implicit driver: WebDriver): StringGet 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 - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    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 - WebDriverwith which to drive the browser
 - Definition Classes
- WebBrowser
 
-    def withScreenshot[T](fun: => T)(implicit driver: WebDriver): TExecute the given function, if ModifiableMessageexception 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 ModifiableMessageexception 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 callingsetCaptureDir- fun
- function to execute 
- returns
- the value returned by - fun
 - Definition Classes
- WebBrowser
 
-    def xpath(xpath: String): XPathQueryReturns an XPath query. Returns an XPath query. This method enables syntax such as the following: click on xpath("???") ^- Definition Classes
- WebBrowser
 
-    object addThis object is part of ScalaTest's Selenium DSL. This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This object enables syntax such as the following: add cookie("aName", "aValue") ^ - Definition Classes
- WebBrowser
 
-    object captureThis object is part of ScalaTest's Selenium DSL. This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This object enables syntax such as the following: capture ^ 
 capture to "MyScreenshot.png" ^- Definition Classes
- WebBrowser
 
-    object clickThis object is part of ScalaTest's Selenium DSL. This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This object enables syntax such as the following: click on "aButton" ^- Definition Classes
- WebBrowser
 
-    object deleteThis object is part of ScalaTest's Selenium DSL. This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This object enables syntax such as the following: delete cookie "aName" ^ 
 delete all cookies ^- Definition Classes
- WebBrowser
 
-    object goThis object is part of ScalaTest's Selenium DSL. This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This object enables syntax such as the following: go to "http://www.artima.com" ^- Definition Classes
- WebBrowser
 
-    object switchThis object is part of ScalaTest's Selenium DSL. This object is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowserfor an overview of the Selenium DSL.This object enables syntax such as the following: switch to alertBox ^ - Definition Classes
- WebBrowser