can find audio btn
This commit is contained in:
@@ -297,7 +297,6 @@ class CommandorPage {
|
||||
await this.checkAudioBtn();
|
||||
for (let i = 0; i < 15; i++) {
|
||||
await delay(1000)
|
||||
log("will call beep")
|
||||
shell.beep()
|
||||
}
|
||||
log("发现datadome");
|
||||
@@ -322,13 +321,13 @@ class CommandorPage {
|
||||
}
|
||||
|
||||
async checkAudioBtn() {
|
||||
// let iframe = await this.page.locator("iframe").contentFrame;
|
||||
// let audioBtn = iframe.locator("#captcha__audio__button");
|
||||
// if (audioBtn) {
|
||||
// log("audioBtn found")
|
||||
// } else {
|
||||
// log("audioBtn not found")
|
||||
// }
|
||||
let audioBtn = await this.page.frameLocator("iframe").locator("#captcha__audio__button");
|
||||
if (audioBtn) {
|
||||
log("audioBtn found")
|
||||
audioBtn.click()
|
||||
} else {
|
||||
log("audioBtn not found")
|
||||
}
|
||||
}
|
||||
|
||||
async onResponse(response) {
|
||||
|
||||
Reference in New Issue
Block a user