PlatformInputEngine

class PlatformInputEngine(session: PageSession, scriptEngine: PlatformScriptEngine, reader: PlatformReader, config: BrowserConfig)

Handles synthetic user interactions (click, type, press, hover, scrollIntoView, selectOption) on the platform backend.

Constructors

Link copied to clipboard
constructor(session: PageSession, scriptEngine: PlatformScriptEngine, reader: PlatformReader, config: BrowserConfig)

Functions

Link copied to clipboard
suspend fun click(selector: String, timeoutMillis: Long = 0)

Clicks the element matching selector after scrolling it into view and waiting for it to exist.

Link copied to clipboard
suspend fun fillTime(selector: String, time: String, timeoutMillis: Long = 0)

Sets the time value (HH:MM format) on a time input element matching selector.

Link copied to clipboard
suspend fun hover(selector: String, timeoutMillis: Long = 0)

Hovers over element matching selector.

Link copied to clipboard
suspend fun press(selector: String, key: String, timeoutMillis: Long = 0)

Presses key on element matching selector.

Link copied to clipboard
suspend fun scrollIntoView(selector: String, timeoutMillis: Long = 0)

Scrolls element matching selector into view.

Link copied to clipboard
suspend fun selectOption(selector: String, value: String, timeoutMillis: Long = 0)

Selects value on element matching selector.

Link copied to clipboard
suspend fun type(selector: String, text: String, timeoutMillis: Long = 0)

Types text into the element matching selector, firing input and change events for framework binding.