The value to fill in the input field
Optionaloptions: ActionOptionsUse this to override the timeout for this action
Returns the text content of the element. This method waits for the element to be visible before getting the text.
Usage:
const textContent = await device.getByText("Search").getText();
Optionaloptions: ActionOptionsUse this to override the timeout for this action
Waits for the element to be visible, while attempting for the timeout duration.
Returns boolean based on the visibility of the element.
Usage:
const isVisible = await device.getByText("Search").isVisible();
Optionaloptions: ActionOptionsUse this to override the timeout for this action
Sends key strokes to the element. This method waits for the element to be visible before sending the key strokes.
Usage:
await device.getByText("Search").sendKeyStrokes("My query");
The string to send as key strokes.
Optionaloptions: ActionOptionsUse this to override the timeout for this action
Taps (clicks) on the element. This method waits for the element to be visible before clicking it.
Usage:
await device.getByText("Submit").tap();
Optionaloptions: ActionOptionsUse this to override the timeout for this action
Wait for the element to be visible or attached, while attempting for the timeout duration.
Throws TimeoutError if element is not found within the timeout.
Usage:
await device.getByText("Search").waitFor({ state: "visible" });
The state to wait for
Optionaloptions: ActionOptionsUse this to override the timeout for this action
Fills the input element with the given value. This method waits for the element to be visible before filling it.
Usage: