object delete
This object is part of ScalaTest's Selenium DSL. Please see the documentation for
WebBrowser
for an overview of the Selenium DSL.
This object enables syntax such as the following:
delete cookie "aName"
^
delete all cookies
^
- Source
- WebBrowser.scala
- Alphabetic
- By Inheritance
- delete
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
all(cookies: CookiesNoun)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Unit
Delete all cookies in the current domain from web browser.
Delete all cookies in the current domain from web browser.
- driver
the
WebDriver
with which to drive the browser
-
def
cookie(name: String)(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Unit
Delete cookie with the specified name from web browser, throws TestFailedException if the specified cookie does not exists.
Delete cookie with the specified name from web browser, throws TestFailedException if the specified cookie does not exists.
- name
cookie's name
- driver
the
WebDriver
with which to drive the browser