The click hook of conformance: a way to click, for the adapter
under test.
click(message_id, id, option)clicks an element of a message the suite posted through the adapter's real entry, failingNoSuchElementwhen the message has no such element.submit(values)submits the modal the last click or command opened, and again after anerrorsreply; it does nothing when no modal is open.command(thread, id, text)sends a command typed atthread; the command rules exist only when it is given.- All three need
chat_interaction.Handlerand nothing else: the suite provides its own recording handler at the call.
Attributes#
| Attribute | Type | Description |
|---|---|---|
click | Callable[[str, str, str | None], Effect[None, NoSuchElement, ci.Handler]] | |
submit | Callable[[Mapping[str, str]], Effect[None, Never, ci.Handler]] | |
command | Callable[[ChatThread, str, str], Effect[None, Never, ci.Handler]] | None = None |
Functions#
__init__#
__init__(*, click, submit, command=None) -> None| Parameter | Type | Description |
|---|---|---|
click | Callable[[str, str, str | None], Effect[None, NoSuchElement, ci.Handler]] | |
submit | Callable[[Mapping[str, str]], Effect[None, Never, ci.Handler]] | |
command | Callable[[ChatThread, str, str], Effect[None, Never, ci.Handler]] | None = None |