Merge branch 'feature/disconnect_after_opening_appointment_url' of bitbucket.org:panleicim/puppeteerjs into feature/disconnect_after_opening_appointment_url

This commit is contained in:
2023-05-30 21:57:37 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class SlidingCaptchaSolver {
await this.take_screen_shot(blockedImageFileName, device) await this.take_screen_shot(blockedImageFileName, device)
//get resolution of screen //get resolution of screen
await this.sendRequest(blockedImageFileName, async (detectedPositionList) => { await this.sendRequest(blockedImageFileName, async (detectedPositionList) => {
console.log("detectedPosition is " + detectedPositionList); console.log("detectedPosition: " + device.model() + ":" + detectedPositionList);
if (detectedPositionList.length >= 2) { if (detectedPositionList.length >= 2) {
// #xiaomi // #xiaomi
let startPosition = detectedPositionList.filter((positionInfo) => { let startPosition = detectedPositionList.filter((positionInfo) => {
+1 -1
View File
@@ -24,8 +24,8 @@ class SolveCaptcha {
} }
async solve_captcha(site_key, handle_solution_received) { async solve_captcha(site_key, handle_solution_received) {
console.log("solve_captcha(), for " + this.page.url())
try { try {
console.log("solve_captcha(), for " + this.page.url())
let url_get = `http://2captcha.com/in.php?key=${API_KEY}&method=userrecaptcha&googlekey=${site_key}&pageurl=${this.page.url()}`; let url_get = `http://2captcha.com/in.php?key=${API_KEY}&method=userrecaptcha&googlekey=${site_key}&pageurl=${this.page.url()}`;
let res = await axios.get(url_get) let res = await axios.get(url_get)
console.log(`statusCode: ${res.status}`); console.log(`statusCode: ${res.status}`);