reverse lastName and firstName
This commit is contained in:
@@ -123,6 +123,7 @@ class CommandorPage {
|
||||
const intervalTask = setInterval(() => {
|
||||
if (this.isTerminated) {
|
||||
log(this.device.model() + ":request terminated, will close device");
|
||||
if (this.context !== undefined)
|
||||
this.context.close();
|
||||
// this.page.close()
|
||||
// this.device.close()
|
||||
@@ -201,10 +202,10 @@ class CommandorPage {
|
||||
if (!this.isNameInput) {
|
||||
await page.locator(LAST_NAME).focus()
|
||||
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 delay(getRandomWaitTime())
|
||||
await page.locator(FIRST_NAME).fill(this.contact.lastName)
|
||||
await page.locator(FIRST_NAME).fill(this.contact.firstName)
|
||||
this.isNameInput = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user