Packages

case class Browser(properties: Map[(ElementId, String), String] = Map.empty, forms: Map[ElementId, FormData] = Map.empty, filesMap: Map[ElementId, Map[String, Array[Byte]]] = Map.empty, jsMocks: List[String] = Nil) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Browser
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Browser(properties: Map[(ElementId, String), String] = Map.empty, forms: Map[ElementId, FormData] = Map.empty, filesMap: Map[ElementId, Map[String, Array[Byte]]] = Map.empty, jsMocks: List[String] = Nil)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def access[F[_], S, M](initialState: S, f: (Access[F, S, M]) ⇒ F[Unit], eventData: String = "", elements: Map[Id, ElementId] = Map.empty)(implicit arg0: Effect[F]): F[Seq[Action[F, S, M]]]

    Applies f to the Browser using Context.Access.

    Applies f to the Browser using Context.Access.

    elements

    evalJs uses this mapping to search elements on the client side.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def event[F[_], S, M](state: S, dom: Node[Binding[F, S, M]], event: String, target: (PseudoHtml) ⇒ Option[Id], eventData: String = "")(implicit arg0: Effect[F]): F[Seq[Action[F, S, M]]]

    Simulate event propagation on the given DOM.

    Simulate event propagation on the given DOM.

    Example:
    1. def onClick(access: Access) = ???
      
      val dom = body(
        div("Hello world"),
        button(
          event("click")(onClick),
          name := "my-button",
          "Click me"
        )
      )
      
      val actions = Browser.event(
        state = myInitialState,
        dom = dom,
        event = "click"
        target = _.byName("by-button").headOption,
       )
    See also

    access

  9. def file(id: ElementId, file: (String, Array[Byte])): Browser

    Add file to id.

  10. def files(id: ElementId, filesList: (String, Array[Byte])*): Browser

    Set files at id to filesList.

  11. val filesMap: Map[ElementId, Map[String, Array[Byte]]]
  12. def form(id: ElementId, fields: (String, String)*): Browser
  13. def form(id: ElementId, data: FormData): Browser
  14. val forms: Map[ElementId, FormData]
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val jsMocks: List[String]
  18. def mockJs(script: String): Browser
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. val properties: Map[(ElementId, String), String]
  23. def property(id: ElementId, name: String, value: String): Browser
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def value(id: ElementId, value: String): Browser
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped