pub fn parse_click_options<'js>(
ctx: &Ctx<'js>,
value: Opt<Value<'js>>,
) -> Result<Option<ClickOptions>>Expand description
Parse Playwright’s ClickOptions JS bag into the core struct.
Accepts Opt<Value> so callers pass Opt(options) verbatim; None,
undefined, or null → Ok(None). Unknown button / modifier
strings raise a typed rquickjs::Error with the exact Playwright
message so JS-side assertions see /Unknown (button|modifier)/ for
drift detection.