MultiBrowser

trait MultiBrowser[+D <: WebDriver] extends MultiTab[D]

Creates tabs across multiple browsers.

Note: This is mutable.

Companion
object
trait MultiTab[D]
class Object
trait Matchable
class Any

Value members

Abstract methods

def close(quit: Boolean): Unit

Closes all opened browsers.

Closes all opened browsers.

Value Params
quit

If true, calls .quit() on WebDriver which terminates the browser entirely, regardless of its state. If false, closes all managed tabs and then the root tab which, if no other tabs are open, results in the browser instance closing.

def closeManagedTabs(): Unit

Close all tabs in all browsers that have been opened by this.

Close all tabs in all browsers that have been opened by this.

def closeRoot(): Unit

Close all root (empty) tabs in all browsers, and disassociate the browsers if they remain open.

Close all root (empty) tabs in all browsers, and disassociate the browsers if they remain open.

Caution: this will prevent associated Tab instances from focusing themselves. Do not call this method if you intend to continue using associated tabs.

def onNewDriver(f: D => Unit): MultiBrowser[D]
def onNewDriverWithTempTab(f: Tab[D] => Unit): MultiBrowser[D]
def onNewTab(f: Tab[D] => Unit): MultiBrowser[D]

Concrete methods

def onShutdownClose(quit: Boolean): Unit

On JVM shutdown, calls close.

On JVM shutdown, calls close.

def onShutdownCloseRoot(): Unit

On JVM shutdown, calls closeRoot.

On JVM shutdown, calls closeRoot.

Inherited methods

def openTab(): Tab[D]
Inherited from
MultiTab
def openTabTo(url: String): Tab[D]
Inherited from
MultiTab