Class

org.scalatest.selenium.WebBrowser

SwitchTarget

Related Doc: package WebBrowser

Permalink

sealed abstract class SwitchTarget[T] extends AnyRef

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

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

Source
WebBrowser.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SwitchTarget
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def switch(driver: WebDriver)(implicit position: Position): T

    Permalink

    Abstract method implemented by subclasses that represent "targets" to which the user can switch.

    Abstract method implemented by subclasses that represent "targets" to which the user can switch.

    driver

    the WebDriver with which to perform the switch