com.typesafe.webdriver

HtmlUnitWebDriverCommands

class HtmlUnitWebDriverCommands extends WebDriverCommands

Runs WebDriver command in the context of the JVM ala HtmlUnit.

Linear Supertypes
WebDriverCommands, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HtmlUnitWebDriverCommands
  2. WebDriverCommands
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HtmlUnitWebDriverCommands()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def createSession(desiredCapabilities: JsObject = JsObject(), requiredCapabilities: JsObject = JsObject()): Future[Either[WebDriverError, WebDriverSession]]

    Start a session

    Start a session

    returns

    the future session id

    Definition Classes
    HtmlUnitWebDriverCommandsWebDriverCommands
  9. def destroySession(sessionId: String): Unit

    Stop an established session.

    Stop an established session. Performed on a best-effort basis.

    sessionId

    the session to stop.

    Definition Classes
    HtmlUnitWebDriverCommandsWebDriverCommands
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def executeJs(sessionId: String, script: String, args: JsArray): Future[Either[WebDriverError, JsValue]]

    Execute some JS code and return the status of execution.

    Execute some JS code and return the status of execution. Any args are passed to the script as args[]. The script must also declare a result as a variable e.g.

    var result = "some result";
    
    . This result variable will be looked for in the global scope and errors will occur if it is not found. var result = "some result"; variable will be looked for in the global scope and errors will occur if it is not found.

    sessionId

    the session

    script

    the script to execute

    args

    a json array declaring the arguments to pass to the script

    returns

    the return value of the script's execution as a json value

    Definition Classes
    HtmlUnitWebDriverCommandsWebDriverCommands
  13. def executeNativeJs(sessionId: String, script: String, args: JsArray): Future[Either[WebDriverError, JsValue]]

    Similar to com.typesafe.webdriver.WebDriverCommands.executeJs, this method executes JavaScript code.

    Similar to com.typesafe.webdriver.WebDriverCommands.executeJs, this method executes JavaScript code. However the code is executed directly on the JavaScript engine. What this actually means will depend on the underlying JavaScript engine. In the case of PhantomJS for example, the full PhantomJS API is available. For HtmlUnit the underlying JavaScript engine (at this time, Rhino) will be available. The implementation of this method is entirely optional. If a particular type of Browser does not support it then an error will be returned.

    sessionId

    the session

    script

    the script to execute

    args

    a json array declaring the arguments to pass to the script

    returns

    the return value of the script's execution as a json value

    Definition Classes
    HtmlUnitWebDriverCommandsWebDriverCommands
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def navigateTo(sessionId: String, url: String): Future[Either[WebDriverError, Unit]]

    Navigate to a new URL.

    Navigate to a new URL. POST /session/:sessionId/url

    sessionId

    the session

    url

    the url to navigate to

    returns

    Definition Classes
    HtmlUnitWebDriverCommandsWebDriverCommands
    See also

    https://code.google.com/p/selenium/wiki/JsonWireProtocol#POST_/session/:sessionId/url

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def screenshot(sessionId: String): Future[Either[WebDriverError, JsValue]]

    Take a screenshot of the current window.

    Take a screenshot of the current window. GET /session/:sessionId/screenshot

    sessionId

    the session

    returns

    Definition Classes
    HtmlUnitWebDriverCommandsWebDriverCommands
    See also

    https://code.google.com/p/selenium/wiki/JsonWireProtocol#GET_/session/:sessionId/screenshot

  23. val sessions: TrieMap[String, HtmlPage]

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from WebDriverCommands

Inherited from AnyRef

Inherited from Any

Ungrouped