com.typesafe.webdriver

PhantomJsWebDriverCommands

class PhantomJsWebDriverCommands extends HttpWebDriverCommands

Specialisations for PhantomJs.

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

Instance Constructors

  1. new PhantomJsWebDriverCommands(arf: ActorRefFactory, host: String, port: Int)

Type Members

  1. case class CommandResponse(sessionId: String, status: Int, value: JsValue) extends Product with Serializable

    Attributes
    protected
    Definition Classes
    HttpWebDriverCommands

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
    HttpWebDriverCommandsWebDriverCommands
  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
    HttpWebDriverCommandsWebDriverCommands
  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
    HttpWebDriverCommandsWebDriverCommands
  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
    PhantomJsWebDriverCommandsHttpWebDriverCommandsWebDriverCommands
  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
    HttpWebDriverCommandsWebDriverCommands
    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. val pipeline: (HttpRequest) ⇒ Future[CommandResponse]

    Attributes
    protected
    Definition Classes
    HttpWebDriverCommands
  23. 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
    HttpWebDriverCommandsWebDriverCommands
    See also

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

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

    Definition Classes
    AnyRef
  25. def toEitherErrorOrSession(response: CommandResponse): Either[WebDriverError, WebDriverSession]

    Attributes
    protected
    Definition Classes
    HttpWebDriverCommands
  26. def toEitherErrorOrUnit(response: CommandResponse): Either[WebDriverError, Unit]

    Attributes
    protected
    Definition Classes
    HttpWebDriverCommands
  27. def toEitherErrorOrValue(response: CommandResponse): Either[WebDriverError, JsValue]

    Attributes
    protected
    Definition Classes
    HttpWebDriverCommands
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def unmarshalIgnoreStatus[T](implicit arg0: Unmarshaller[T]): (HttpResponse) ⇒ T

    Definition Classes
    HttpWebDriverCommands
  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HttpWebDriverCommands

Inherited from WebDriverCommands

Inherited from AnyRef

Inherited from Any

Ungrouped