1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

JS -- Add support for buttons

* radio buttons
 * checkboxes
This commit is contained in:
Calixte Denizet 2020-11-18 18:54:26 +01:00
parent 9c99df7cac
commit 7c3facb174
10 changed files with 280 additions and 24 deletions

View file

@ -34,3 +34,11 @@ exports.closePages = pages =>
await page.close();
})
);
exports.clearInput = async (page, selector) => {
await page.click(selector);
await page.keyboard.down("Control");
await page.keyboard.press("A");
await page.keyboard.up("Control");
await page.keyboard.press("Backspace");
};