Tab

trait Tab[+D <: WebDriver]

Access to a specific tab in a browser.

Ensure that you call .withSeleniumTab on your TestState DSL when using this.

Note: This is mutable.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def afterClose(callback: D => Unit): Tab[D]
def afterClosed(callback: => Unit): Tab[D]
def aroundEachUse(around: D => ProcMod): Tab[D]
def aroundFirstUse(around: D => ProcMod): Tab[D]
def beforeClose(callback: D => Unit): Tab[D]
def closeTab(): Boolean

Close the tab.

Close the tab.

Returns

whether this call was effective. Specifically, true if this call closed the tab, false if the tab was already closed.

def use[A](f: D => A): A

Focus the tab and perform action within it

Focus the tab and perform action within it

def useM[M[_], A](f: D => M[A], lockWait: Duration, lockRetry: Duration)(implicit EM: ExecutionModel[M]): M[A]

Monadic version of use.

Monadic version of use.

Value Params
lockRetry

If the lock cannot be acquired, how long to wait before trying again.

lockWait

Maximum time to wait attempting to acquire the tab lock.

Concrete methods

final def afterEachUse(f: D => Unit): Tab[D]
final def afterFirstUse(f: D => Unit): Tab[D]
final def beforeEachUse(f: D => Unit): Tab[D]
final def beforeFirstUse(f: D => Unit): Tab[D]