reduce to 500ms for inputing audio captcha
This commit is contained in:
@@ -62,7 +62,7 @@ class GeoCaptchaSolver {
|
|||||||
let iframeHandler = await this.page.frameLocator("body > iframe");
|
let iframeHandler = await this.page.frameLocator("body > iframe");
|
||||||
let playAudioBtn = await iframeHandler.locator(PLAY_AUDIO_BTN_ID);
|
let playAudioBtn = await iframeHandler.locator(PLAY_AUDIO_BTN_ID);
|
||||||
playAudioBtn.click();
|
playAudioBtn.click();
|
||||||
await delay(5000 + getRandomWaitTime());
|
await delay(4000 + getRandomWaitTime());
|
||||||
let captcha_container = await iframeHandler.locator(CAPTCHA_CONTAINER)
|
let captcha_container = await iframeHandler.locator(CAPTCHA_CONTAINER)
|
||||||
let html = await captcha_container.innerHTML()
|
let html = await captcha_container.innerHTML()
|
||||||
console.log("audio_tag: " + html);
|
console.log("audio_tag: " + html);
|
||||||
@@ -75,7 +75,7 @@ class GeoCaptchaSolver {
|
|||||||
await iframeHandler.locator(selector).focus()
|
await iframeHandler.locator(selector).focus()
|
||||||
await iframeHandler.locator(selector).fill("" + number_list[i - 1])
|
await iframeHandler.locator(selector).fill("" + number_list[i - 1])
|
||||||
// fieldInputs[i].value = number_list[i];
|
// fieldInputs[i].value = number_list[i];
|
||||||
await delay(1000 + getRandomWaitTime());
|
await delay(500 + getRandomWaitTime());
|
||||||
}
|
}
|
||||||
let content = await captcha_container.innerHTML()
|
let content = await captcha_container.innerHTML()
|
||||||
console.log("inner container is " + content)
|
console.log("inner container is " + content)
|
||||||
|
|||||||
Reference in New Issue
Block a user