Open jeiea opened 2 months ago
Does await page.keyboard.type("\t");
work?
import { launch } from "https://deno.land/x/astral@0.3.5/mod.ts";
const browser = await launch();
const page = await browser.newPage(
"https://news.ycombinator.com/login?goto=news",
);
await page.keyboard.type("a\tb\tc\td");
Hm, appears to work?
Expected behavior in that case is focus movement, so
a
b
c
d
Is the expected behavior consistent with the behavior of other tools (e.g. puppeteer, playwright, etc)? Perhaps we could have something like page.accessibility.tabNext()
?
I don't know about puppeteer or playwright behavior, so I simply used "Tab" because it was type hinted.
However, I have noticed other constants present there. If you decide to add tabNext
, you should first remove that hint.
Ah okay, right. This is a bug with my implementation. Will fix, thank you. Not sure what it would actually do, but it should just work.
Steps to reproduce
Expected behavior
Press tab key
Actual behavior
Type "Tab"