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(() => { setTimeout(() => {
doc.dispatchEvent(event); doc.dispatchEvent(event);
// Then get the context menu to click on "Export" after short delay // Then get the context menu to click on "Export" after short delay
let exportButton = document.getElementById("exportPdfButton"); setTimeout(() => {
exportButton.click(); let exportButton = document.getElementById("exportPdfButton");
// Click out of context menu to allow other context menu to pop exportButton.click();
let outer = document.getElementById("fullScreenModalDismissibleArea"); // Click out of context menu to allow other context menu to pop
outer.click(); let outer = document.getElementById("fullScreenModalDismissibleArea");
outer.click();
}, 100);
}, 500*i); }, 500*i);
i += 1;
}) })
} }