reverse lastName and firstName

This commit is contained in:
2023-04-01 19:15:19 +02:00
parent 4487b5cf50
commit ec29772cae
+4 -3
View File
@@ -123,7 +123,8 @@ class CommandorPage {
const intervalTask = setInterval(() => { const intervalTask = setInterval(() => {
if (this.isTerminated) { if (this.isTerminated) {
log(this.device.model() + ":request terminated, will close device"); log(this.device.model() + ":request terminated, will close device");
this.context.close(); if (this.context !== undefined)
this.context.close();
// this.page.close() // this.page.close()
// this.device.close() // this.device.close()
clearInterval(intervalTask) clearInterval(intervalTask)
@@ -201,10 +202,10 @@ class CommandorPage {
if (!this.isNameInput) { if (!this.isNameInput) {
await page.locator(LAST_NAME).focus() await page.locator(LAST_NAME).focus()
await delay(getRandomWaitTime()) await delay(getRandomWaitTime())
await page.locator(LAST_NAME).fill(this.contact.firstName) await page.locator(LAST_NAME).fill(this.contact.lastName)
await page.locator(FIRST_NAME).focus() await page.locator(FIRST_NAME).focus()
await delay(getRandomWaitTime()) await delay(getRandomWaitTime())
await page.locator(FIRST_NAME).fill(this.contact.lastName) await page.locator(FIRST_NAME).fill(this.contact.firstName)
this.isNameInput = true this.isNameInput = true
} }
} }