resolveSoftKeyboardTapPoints
Works out where to touch, in the device pixels adb shell input tap speaks.
Two candidates, not one: the WebView may or may not start at the top of the screen, and the page cannot tell which. Both land inside the field — it is taller than the offset — so a wrong guess costs one touch rather than a mis-tap on whatever sits below.
Import:
import { resolveSoftKeyboardTapPoints } from 'obsidian-integration-testing';Signature:
function resolveSoftKeyboardTapPoints(params: ResolveSoftKeyboardTapPointsParams): SoftKeyboardTapPoint[]Parameters:
| Parameter | Type | Description |
|---|---|---|
params | ResolveSoftKeyboardTapPointsParams | The geometry the tap is aimed from. |
Returns: SoftKeyboardTapPoint[] — The points to try, in order, or an empty array when the field is not on screen.
Links to this page: