check cguCheck

This commit is contained in:
2022-12-09 13:48:04 +01:00
parent a0f725ffeb
commit fd37b50e1d
+4
View File
@@ -68,6 +68,7 @@ class CommandorPage {
this.isTerminated = false;
this.audioAnalyse = audioAnalyse;
this.alertBeep = alertBeep;
this.cguChecked = false;
}
@@ -208,11 +209,14 @@ class CommandorPage {
async checkCGU(page) {
try {
if (!page.isClosed()) {
if (!this.cguChecked) {
await page.locator(CGU_ID).focus()
await page.locator(CGU_ID).click()
await delay(getRandomWaitTime())
await page.locator(PROCESSING_ID).focus()
await page.locator(PROCESSING_ID).click()
this.cguChecked = true;
}
}
} catch (e) {
log(e);