-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93dedb5
commit cd59b8b
Showing
1 changed file
with
1 addition
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -725,151 +725,7 @@ try { | |
}); | ||
await Promise.all(promises); | ||
} | ||
{ | ||
const targetPage = page; | ||
const promises = []; | ||
const startWaitingForEvents = () => { | ||
promises.push(targetPage.waitForNavigation()); | ||
}; | ||
startWaitingForEvents(); | ||
const target = await Promise.race([ | ||
targetPage.locator('#email'), | ||
targetPage.locator('::-p-xpath(//*[@id=\\"email\\"])'), | ||
]); | ||
target.setTimeout(timeout); | ||
await target.click({ | ||
offset: { | ||
x: 124, | ||
y: 24.40625, | ||
}, | ||
}); | ||
} | ||
{ | ||
const targetPage = page; | ||
const promises = []; | ||
const startWaitingForEvents = () => { | ||
promises.push(targetPage.waitForNavigation()); | ||
}; | ||
startWaitingForEvents(); | ||
const target = await Promise.race([ | ||
targetPage.locator('#email'), | ||
targetPage.locator('::-p-xpath(//*[@id=\\"email\\"])'), | ||
]); | ||
target.setTimeout(timeout); | ||
await target.fill('[email protected]'); | ||
} | ||
{ | ||
const targetPage = page; | ||
const promises = []; | ||
const startWaitingForEvents = () => { | ||
promises.push(targetPage.waitForNavigation()); | ||
}; | ||
startWaitingForEvents(); | ||
const target = await Promise.race([ | ||
targetPage.locator('#password'), | ||
targetPage.locator('::-p-xpath(//*[@id=\\"password\\"])'), | ||
]); | ||
target.setTimeout(timeout); | ||
await target.click({ | ||
offset: { | ||
x: 124, | ||
y: 18.40625, | ||
}, | ||
}); | ||
} | ||
{ | ||
const targetPage = page; | ||
const promises = []; | ||
const startWaitingForEvents = () => { | ||
promises.push(targetPage.waitForNavigation()); | ||
}; | ||
startWaitingForEvents(); | ||
const target = await Promise.race([ | ||
targetPage.locator('#password'), | ||
targetPage.locator('::-p-xpath(//*[@id=\\"password\\"])'), | ||
]); | ||
target.setTimeout(timeout); | ||
await target.fill('123'); | ||
} | ||
{ | ||
const targetPage = page; | ||
const promises = []; | ||
const startWaitingForEvents = () => { | ||
promises.push(targetPage.waitForNavigation()); | ||
}; | ||
startWaitingForEvents(); | ||
const target = await Promise.race([ | ||
targetPage.locator('#login'), | ||
targetPage.locator('::-p-xpath(//*[@id=\\"login\\"])'), | ||
]); | ||
target.setTimeout(timeout); | ||
target.on('action', () => startWaitingForEvents()); | ||
await target.click({ | ||
offset: { | ||
x: 28, | ||
y: 24.40625, | ||
}, | ||
}); | ||
await Promise.all(promises); | ||
} | ||
{ | ||
const targetPage = page; | ||
const promises = []; | ||
const startWaitingForEvents = () => { | ||
promises.push(targetPage.waitForNavigation()); | ||
}; | ||
startWaitingForEvents(); | ||
const target = await Promise.race([ | ||
targetPage.locator('li:nth-of-type(6) > a'), | ||
targetPage.locator( | ||
'::-p-xpath(//*[@id=\\"siteNavbar\\"]/ul/li[6]/a)' | ||
), | ||
targetPage.locator('::-p-text(Profile)'), | ||
]); | ||
target.setTimeout(timeout); | ||
target.on('action', () => startWaitingForEvents()); | ||
await target.click({ | ||
offset: { | ||
x: 29.9375, | ||
y: 21, | ||
}, | ||
}); | ||
await Promise.all(promises); | ||
} | ||
{ | ||
const targetPage = page; | ||
const promises = []; | ||
const startWaitingForEvents = () => { | ||
promises.push(targetPage.waitForNavigation()); | ||
}; | ||
startWaitingForEvents(); | ||
const target = await Promise.race([ | ||
targetPage.locator('#Password'), | ||
targetPage.locator('::-p-xpath(//*[@id=\\"Password\\"])'), | ||
]); | ||
target.setTimeout(timeout); | ||
await target.click({ | ||
offset: { | ||
x: 42.5, | ||
y: 26.40625, | ||
}, | ||
}); | ||
} | ||
{ | ||
const targetPage = page; | ||
const promises = []; | ||
const startWaitingForEvents = () => { | ||
promises.push(targetPage.waitForNavigation()); | ||
}; | ||
startWaitingForEvents(); | ||
const target = await Promise.race([ | ||
targetPage.locator('#Password'), | ||
targetPage.locator('::-p-xpath(//*[@id=\\"Password\\"])'), | ||
targetPage.locator(':scope >>> #Password'), | ||
]); | ||
target.setTimeout(timeout); | ||
await target.fill('123'); | ||
} | ||
|
||
await browser.close(); | ||
} catch (err) { | ||
console.error(err); | ||
|