fix
This commit is contained in:
@@ -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
|
||||||
|
setTimeout(() => {
|
||||||
let exportButton = document.getElementById("exportPdfButton");
|
let exportButton = document.getElementById("exportPdfButton");
|
||||||
exportButton.click();
|
exportButton.click();
|
||||||
// Click out of context menu to allow other context menu to pop
|
// Click out of context menu to allow other context menu to pop
|
||||||
let outer = document.getElementById("fullScreenModalDismissibleArea");
|
let outer = document.getElementById("fullScreenModalDismissibleArea");
|
||||||
outer.click();
|
outer.click();
|
||||||
|
}, 100);
|
||||||
}, 500*i);
|
}, 500*i);
|
||||||
|
i += 1;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user