no need to check if passport id has already input or not

This commit is contained in:
2023-05-25 12:52:59 +02:00
parent 29b65401d4
commit 13a245327f
+2 -2
View File
@@ -316,12 +316,12 @@ class CommandorPage {
async inputPassportId(page) { async inputPassportId(page) {
try { try {
if (this.browser.isConnected()) { if (this.browser.isConnected()) {
if (!this.isPasspordInput) { // if (!this.isPasspordInput) {
await page.focus(PASSPORT_ID); await page.focus(PASSPORT_ID);
await delay(getRandomWaitTime()); await delay(getRandomWaitTime());
await page.keyboard.type(this.contact.passportNumber.toString()) await page.keyboard.type(this.contact.passportNumber.toString())
this.isPasspordInput = true; this.isPasspordInput = true;
} // }
} }
} catch (e) { } catch (e) {
log(e); log(e);