This commit is contained in:
2024-12-14 15:15:17 +01:00
parent 2627c91202
commit 087d3c8496

View File

@@ -62,11 +62,14 @@ function clickExportOnAllDocuments(allDocuments) {
setTimeout(() => {
doc.dispatchEvent(event);
// Then get the context menu to click on "Export" after short delay
let exportButton = document.getElementById("exportPdfButton");
exportButton.click();
// Click out of context menu to allow other context menu to pop
let outer = document.getElementById("fullScreenModalDismissibleArea");
outer.click();
setTimeout(() => {
let exportButton = document.getElementById("exportPdfButton");
exportButton.click();
// Click out of context menu to allow other context menu to pop
let outer = document.getElementById("fullScreenModalDismissibleArea");
outer.click();
}, 100);
}, 500*i);
i += 1;
})
}