trait InternetExplorer extends WebBrowser with Driver with ScreenshotCapturer
WebBrowser subtrait that defines an implicit WebDriver for Internet Explorer (an org.openqa.selenium.ie.InternetExplorerDriver).
- Annotations
- @deprecated
- Deprecated
InternetExplorer has been moved from org.scalatest.selenium to org.scalatestplus.selenium. Please update your imports, as this deprecated type alias will be removed in a future version of ScalaTest.
- Source
- WebBrowser.scala
- Alphabetic
- By Inheritance
- InternetExplorer
- ScreenshotCapturer
- Driver
- WebBrowser
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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 Element
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:
checkbox("cbx1").select()- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a checkbox
-
case class
ClassNameQuery(queryString: String) extends Query with Product with Serializable
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
-
final
class
ColorField extends ValueElement
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:
colorField("q").value should be ("Cheese!")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a color field
-
class
CookiesNoun extends AnyRef
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
WebBrowserfor an overview of the Selenium DSL.- Definition Classes
- WebBrowser
-
case class
CssSelectorQuery(queryString: String) extends Query with Product with Serializable
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
-
final
class
DateField extends ValueElement
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:
dateField("q").value should be ("2003-03-01")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a date field
-
final
class
DateTimeField extends ValueElement
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:
dateTimeField("q").value should be ("2003-03-01T12:13:14")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a datetime field
-
final
class
DateTimeLocalField extends ValueElement
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:
dateTimeLocalField("q").value should be ("2003-03-01T12:13:14")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes 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 Serializable
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
-
sealed
trait
Element extends AnyRef
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 wrappedWebElementvia theunderlyingmethod.- Definition Classes
- WebBrowser
-
final
class
EmailField extends ValueElement
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:
emailField("q").value should be ("foo@bar.com")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes 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 Serializable
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
-
case class
LinkTextQuery(queryString: String) extends Query with Product with Serializable
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
-
final
class
MonthField extends ValueElement
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:
monthField("q").value should be ("2003-04")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a month field
-
class
MultiSel extends Element
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").clear("option5")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes 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 Serializable
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
-
final
class
NumberField extends ValueElement
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:
numberField("q").value should be ("1.3")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a number field
-
case class
PartialLinkTextQuery(queryString: String) extends Query with Product with Serializable
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
-
final
class
PasswordField extends ValueElement
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:
pwdField("q").value should be ("Cheese!")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a password field
-
case class
Point(x: Int, y: Int) extends Product with Serializable
A point containing an XY screen location.
A point containing an XY screen location.
- Definition Classes
- WebBrowser
-
sealed
trait
Query extends Product with Serializable
This 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 Element
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:
radioButton(id("opt1")).value should be ("Option 1!")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a text area
-
final
class
RadioButtonGroup extends AnyRef
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:
radioButtonGroup("group1").value should be ("Option 2")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif no radio button with the passedgroupNameare found
-
final
class
RangeField extends ValueElement
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:
rangeField("q").value should be ("1.3")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a range field
-
final
class
SearchField extends ValueElement
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:
searchField("q").value should be ("google")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a search field
-
class
SingleSel extends Element
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:
singleSel.clear()
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a single selection list
-
sealed abstract
class
SwitchTarget[T] extends AnyRef
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
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 Serializable
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
-
final
class
TelField extends ValueElement
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:
telField("q").value should be ("911-911-9191")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a tel field
-
final
class
TextArea extends ValueElement
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:
textArea("q").value should be ("Cheese!")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a text area
-
final
class
TextField extends ValueElement
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:
textField("q").value should be ("Cheese!")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a text field
-
final
class
TimeField extends ValueElement
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:
timeField("q").value should be ("12:13:14")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a time field
-
final
class
UrlField extends ValueElement
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:
urlField("q").value should be ("http://google.com")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes not represent a url field
-
trait
ValueElement extends Element
- Definition Classes
- WebBrowser
-
final
class
WeekField extends ValueElement
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:
weekField("q").value should be ("1996-W16")
- Definition Classes
- WebBrowser
- Exceptions thrown
TestFailedExeptionif the passedWebElementdoes 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 AnyRef
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 wrappedCookievia theunderlyingmethod.- Definition Classes
- WebBrowser
-
case class
XPathQuery(queryString: String) extends Query with Product with Serializable
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
-
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: ActiveElementTarget
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
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): Unit
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
WebDriverwith which to drive the browser
- Definition Classes
- WebBrowser
-
val
alertBox: AlertTarget
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
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
captureScreenshot(directory: String): Unit
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
- InternetExplorer → ScreenshotCapturer
-
def
captureTo(fileName: String)(implicit driver: WebDriver): Unit
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
-
def
checkbox(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Checkbox
Finds 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 aCheckbox
-
def
checkbox(query: Query)(implicit driver: WebDriver, pos: Position): Checkbox
Finds 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 aCheckbox
-
def
className(className: String): ClassNameQuery
Returns 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): Unit
Click on the specified
Element -
def
clickOn(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Unit
Click 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): Unit
Click 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): Unit
Click on the specified
WebElement -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close()(implicit driver: WebDriver): Unit
Closes the current browser window, and exits the driver if the current window was the only one remaining.
Closes the current browser window, and exits the driver if the current window was the only one remaining.
- driver
the
WebDriverwith which to drive the browser
- Definition Classes
- WebBrowser
-
def
colorField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): ColorField
Finds 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 aColorField
-
def
colorField(query: Query)(implicit driver: WebDriver, pos: Position): ColorField
Finds 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 aColorField
-
def
cookie(name: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): WrappedCookie
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
-
val
cookies: CookiesNoun
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
WebBrowserfor an overview of the Selenium DSL.This field enables the following syntax:
delete all cookies ^- Definition Classes
- WebBrowser
-
def
cssSelector(cssSelector: String): CssSelectorQuery
Returns 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): String
Returns 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]): DateField
Finds 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 aDateField
-
def
dateField(query: Query)(implicit driver: WebDriver, pos: Position): DateField
Finds 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 aDateField
-
def
dateTimeField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): DateTimeField
Finds 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 aDateTimeField
-
def
dateTimeField(query: Query)(implicit driver: WebDriver, pos: Position): DateTimeField
Finds 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 aDateTimeField
-
def
dateTimeLocalField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): DateTimeLocalField
Finds 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 aDateTimeLocalField
-
def
dateTimeLocalField(query: Query)(implicit driver: WebDriver, pos: Position): DateTimeLocalField
Finds 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 aDateTimeLocalField
-
val
defaultContent: DefaultContentTarget
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
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]): Unit
Delete 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]): Unit
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
WebDriverwith which to drive the browser
- Definition Classes
- WebBrowser
-
def
emailField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): EmailField
Finds 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 aEmailField
-
def
emailField(query: Query)(implicit driver: WebDriver, pos: Position): EmailField
Finds 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 aEmailField
-
def
enter(value: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Unit
Clears 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
TextFieldorTextArea
- Definition Classes
- WebBrowser
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
executeAsyncScript(script: String, args: AnyRef*)(implicit driver: WebDriver): AnyRef
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
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): AnyRef
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
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[java.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 aSome, orNoneif noElementis 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 aSome, orNoneif noElementis 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 allElements 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 allElements selected by this query
- Definition Classes
- WebBrowser
-
def
frame(query: Query)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): FrameWebElementTarget
This 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 selectWebElementwhich is contained in the frame to switch to- returns
a FrameWebElementTarget instance
- Definition Classes
- WebBrowser
-
def
frame(element: Element): FrameElementTarget
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
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): FrameWebElementTarget
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
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): FrameNameOrIdTarget
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
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): FrameIndexTarget
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
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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
goBack()(implicit driver: WebDriver): Unit
Go 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): Unit
Go 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): Unit
Sends 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): Unit
Sends the browser to the passed URL.
Sends the browser to the passed URL.
Here's an example:
goTo("http://www.artima.com")- url
the URL to which to send the browser
- driver
the
WebDriverwith which to drive the browser
- Definition Classes
- WebBrowser
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
id(elementId: String): IdQuery
Returns 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): Unit
Sets the amount of time the driver should wait when searching for an element that is not immediately present.
Sets the amount of time the driver should wait when searching for an element that is not immediately present.
When searching for requested elements, Selenium will poll the page until the requested element (or at least one of multiple requested elements) is found or this "implicit wait" timeout has expired. If the timeout expires, Selenium will throw
NoSuchElementException, which 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): Boolean
Check 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): LinkTextQuery
Returns 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]): MonthField
Finds 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 aMonthField
-
def
monthField(query: Query)(implicit driver: WebDriver, pos: Position): MonthField
Finds 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 aMonthField
-
def
multiSel(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): MultiSel
Finds 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 aMultiSel
-
def
multiSel(query: Query)(implicit driver: WebDriver, pos: Position): MultiSel
Finds 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 aMultiSel
-
def
name(elementName: String): NameQuery
Returns 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]): NumberField
Finds 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 aNumberField
-
def
numberField(query: Query)(implicit driver: WebDriver, pos: Position): NumberField
Finds 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 aNumberField
-
def
pageSource(implicit driver: WebDriver): String
Returns 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): String
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
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): PartialLinkTextQuery
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
-
def
pressKeys(value: String)(implicit driver: WebDriver): Unit
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
-
def
pwdField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): PasswordField
Finds 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 aPasswordField
-
def
pwdField(query: Query)(implicit driver: WebDriver, pos: Position): PasswordField
Finds 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 aPasswordField
-
def
quit()(implicit driver: WebDriver): Unit
Close 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]): RadioButton
Finds 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 aRadioButton
-
def
radioButton(query: Query)(implicit driver: WebDriver, pos: Position): RadioButton
Finds 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 aRadioButton
-
def
radioButtonGroup(groupName: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): RadioButtonGroup
Finds 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 aRadioButton
-
def
rangeField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): RangeField
Finds 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 aRangeField
-
def
rangeField(query: Query)(implicit driver: WebDriver, pos: Position): RangeField
Finds 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 aRangeField
-
def
reloadPage()(implicit driver: WebDriver): Unit
Reload 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]): SearchField
Finds 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 aSearchField
-
def
searchField(query: Query)(implicit driver: WebDriver, pos: Position): SearchField
Finds 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 aSearchField
-
def
setCaptureDir(targetDirPath: String): Unit
Set capture directory.
-
def
setScriptTimeout(timeout: Span)(implicit driver: WebDriver): Unit
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
-
def
singleSel(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): SingleSel
Finds 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 aSingleSel
-
def
singleSel(query: Query)(implicit driver: WebDriver, pos: Position): SingleSel
Finds 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 aSingleSel
-
def
submit()(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Unit
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
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]): T
Switch 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): TagNameQuery
Returns 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]): TelField
Finds 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 aTelField
-
def
telField(query: Query)(implicit driver: WebDriver, pos: Position): TelField
Finds 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 aTelField
-
def
textArea(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TextArea
Finds 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 aTextArea
-
def
textArea(query: Query)(implicit driver: WebDriver, pos: Position): TextArea
Finds 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 aTextArea
-
def
textField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TextField
Finds 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 aTextField
-
def
textField(query: Query)(implicit driver: WebDriver, pos: Position): TextField
Finds 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 aTextField
-
def
timeField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): TimeField
Finds 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 aTimeField
-
def
timeField(query: Query)(implicit driver: WebDriver, pos: Position): TimeField
Finds 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 aTimeField
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
urlField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): UrlField
Finds 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 aUrlField
-
def
urlField(query: Query)(implicit driver: WebDriver, pos: Position): UrlField
Finds 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 aUrlField
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
implicit
val
webDriver: InternetExplorerDriver
WebBrowsersubtrait that defines an implicitWebDriverfor Internet Explorer (anorg.openqa.selenium.ie.InternetExplorerDriver).WebBrowsersubtrait that defines an implicitWebDriverfor Internet Explorer (anorg.openqa.selenium.ie.InternetExplorerDriver).- Definition Classes
- InternetExplorer → Driver
-
def
weekField(queryString: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): WeekField
Finds 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 aWeekField
-
def
weekField(query: Query)(implicit driver: WebDriver, pos: Position): WeekField
Finds 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 aWeekField
-
def
window(nameOrHandle: String): WindowTarget
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) ^- nameOrHandle
name or window handle of the window to switch to
- returns
a WindowTarget instance
- Definition Classes
- WebBrowser
-
def
windowHandle(implicit driver: WebDriver): String
Get an opaque handle to current active window that uniquely identifies it within the implicit driver instance.
Get an opaque handle to current active window that uniquely identifies it within the implicit driver instance.
- driver
the
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): T
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.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): XPathQuery
Returns an XPath query.
Returns an XPath query.
This method enables syntax such as the following:
click on xpath("???") ^- Definition Classes
- WebBrowser
-
object
add
This 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
capture
This 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
click
This 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
delete
This 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
go
This 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
switch
This 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