org.scalatest.selenium
Trait declaring a webDriver field that enables tests to be abstracted across different kinds of WebDrivers.
webDriver
WebDriver
This trait enables you to place tests that you want to run in multiple browsers in a trait with a self type of WebBrowser with Driver, like this:
WebBrowser with Driver
trait MyBrowserTests { this: WebBrowser with Driver => // Your browser tests }
Then you can create concrete subclasses for each actual browser you want to run those tests in:
class MyBrowserTestsWithChrome extends MyBrowserTests with Chrome class MyBrowserTestsWithSafari extends MyBrowserTests with Safari class MyBrowserTestsWithInternetExplorer extends MyBrowserTests with InternetExplorer class MyBrowserTestsWithFirefox extends MyBrowserTests with Firefox
An implicit WebDriver.
This abstract field is implemented by subtraits HtmlUnit, FireFox, Safari, Chrome, and InternetExplorer.
HtmlUnit
FireFox
Safari
Chrome
InternetExplorer
Trait declaring a
webDriver
field that enables tests to be abstracted across different kinds ofWebDriver
s.This trait enables you to place tests that you want to run in multiple browsers in a trait with a self type of
WebBrowser with Driver
, like this:Then you can create concrete subclasses for each actual browser you want to run those tests in: