korolev.testkit.Browser
See theBrowser companion object
case class Browser(properties: Map[(ElementId, String), String], forms: Map[ElementId, FormData], filesMap: Map[ElementId, Map[String, Array[Byte]]], jsMocks: List[String])
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Applies f to the Browser using Context.Access.
Applies f to the Browser using Context.Access.
Value parameters
- elements
-
evalJs uses this mapping to search elements on the client side.
Attributes
def event[F[_] : Effect, S, M](state: S, dom: Node[Binding[F, S, M]], event: String, target: PseudoHtml => Option[Id], eventData: String): F[Seq[Action[F, S, M]]]
Simulate event propagation on the given DOM.
Simulate event propagation on the given DOM.
Attributes
- See also
- Example
-
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, )
Add file to id.
Add file to id.
Attributes
Set files at id to filesList.
Set files at id to filesList.
Attributes
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
In this article