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:
parent
9c99df7cac
commit
7c3facb174
10 changed files with 280 additions and 24 deletions
|
@ -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");
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue