This trait has been moved as separate trait in org.scalatest.selenium package. The deprecated type alias that has been left in its place will
be removed in a future version of ScalaTest. Please change any uses of this to org.scalatest.selenium.Page.

This trait has been moved as separate trait in org.scalatest.selenium package. The deprecated type alias that has been left in its place will
be removed in a future version of ScalaTest. Please change any uses of this to org.scalatest.selenium.Page.

defcaptureScreenshot(directory: String): Unit

defcaptureTo(fileName: String)(implicit driver: WebDriver): Unit

Capture screenshot and save it as the specified name (if file name does not end with .

Capture screenshot and save it as the specified name (if file name does not end with .png, it will be extended automatically) in capture directory,
which by default is system property's java.io.tmpdir. You can change capture directory by calling setCaptureDir

fileName

screenshot file name, if does not end with .png, it will be extended automatically

final defeq(arg0: AnyRef): Boolean

defequals(arg0: Any): Boolean

Executes an asynchronous piece of JavaScript in the context of the currently selected frame or window.

Executes an asynchronous piece of JavaScript in the context of the currently selected frame or window. Unlike executing synchronous JavaScript,
scripts executed with this method must explicitly signal they are finished by invoking the provided callback. This callback is always injected into
the executed function as the last argument.

The first argument passed to the callback function will be used as the script's result. This value will be handled as follows:

For an HTML element, this method returns a WebElement

For a number, a Long is returned

For a boolean, a Boolean is returned

For all other cases, a String is returned

For an array, return a List<Object> with each object following the rules above. We support nested lists

Unless the value is null or there is no return value, in which null is returned

Script arguments must be a number, boolean, String, WebElement, or a List of any combination of these. An exception will
be thrown if the arguments do not meet these criteria. The arguments will be made available to the JavaScript via the "arguments" variable.
(Note that although this behavior is specified by Selenium's JavascriptExecutor Javadoc,
it may still be possible for the underlying JavascriptExecutor implementation to return an objects of other types.
For example, HtmlUnit has been observed to return a java.util.Map for a Javascript object.)

Executes JavaScript in the context of the currently selected frame or window.

Executes JavaScript in the context of the currently selected frame or window. The script fragment provided will be executed as the body of an anonymous function.

Within the script, you can use document to refer to the current document. Local variables will not be available once the script has finished executing, but global variables will.

To return a value (e.g. if the script contains a return statement), then the following steps will be taken:

For an HTML element, this method returns a WebElement

For a decimal, a Double is returned

For a non-decimal number, a Long is returned

For a boolean, a Boolean is returned

For all other cases, a String is returned

For an array, return a List<Object> with each object following the rules above. We support nested lists

Unless the value is null or there is no return value, in which null is returned

Script arguments must be a number, boolean, String, WebElement, or a List of any combination of these. An exception will
be thrown if the arguments do not meet these criteria. The arguments will be made available to the JavaScript via the "arguments" variable.
(Note that although this behavior is specified by Selenium's JavascriptExecutor Javadoc,
it may still be possible for the underlying JavascriptExecutor implementation to return an objects of other types.
For example, HtmlUnit has been observed to return a java.util.Map for a Javascript object.)

The class of the Elements produced by the returned Iterator will be a
subtypes of Element if appropriate. For example, if an Elementrepresenting
a text field is returned by the Iterator, the class of the returned Element will
be TextField.

If no Elements are selected by this query, this method will return an empty Iterator will be returned.

Sets the amount of time the driver should wait when searching for an element that is not immediately present.

Sets the amount of time the driver should wait when searching for an element that is not immediately present.

When searching for requested elements, Selenium will poll the page until the requested element (or at least one of multiple requested
elements) is found or this "implicit wait" timeout has expired.
If the timeout expires, Selenium will throw NoSuchElementException, which ScalaTest's Selenium DSL will wrap in a TestFailedException.

You can alternatively set this timeout to zero and use ScalaTest's eventually construct.

This method invokes manage.timeouts.implicitlyWait on the passed WebDriver. See the documentation of Selenium's
WebDriver#Timeouts interface for more information.

Finds and returns RadioButtonGroup selected by the specified group name, throws TestFailedException if
no element with the specified group name is found, or found any element with the specified group name but not a RadioButton

Finds and returns RadioButtonGroup selected by the specified group name, throws TestFailedException if
no element with the specified group name is found, or found any element with the specified group name but not a RadioButton

defsubmit()(implicit driver: WebDriver): Unit

Submit the form where current active element belongs to, and throws TestFailedException if current active element is not
in a form or underlying WebDriver encounters problem when submitting the form.

Submit the form where current active element belongs to, and throws TestFailedException if current active element is not
in a form or underlying WebDriver encounters problem when submitting the form. If this causes the current page to change,
this call will block until the new page is loaded.

defwithScreenshot(fun: ⇒ Unit)(implicit driver: WebDriver): Unit

Execute the given function, if ModifiableMessage exception is thrown from the given function,
a screenshot will be captured automatically into capture directory, which by default is system property's java.

Execute the given function, if ModifiableMessage exception is thrown from the given function,
a screenshot will be captured automatically into capture directory, which by default is system property's java.io.tmpdir.
You can change capture directory by calling setCaptureDir