org.scalatest.selenium.WebBrowser

SwitchTarget

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SwitchTarget()

Abstract Value Members

  1. abstract def switch(driver: WebDriver): T

    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