need to add speechtotext lib

This commit is contained in:
2022-09-24 18:47:01 +02:00
parent 71a10a9665
commit 08e6330c78
4 changed files with 74 additions and 5 deletions
+4 -5
View File
@@ -5,6 +5,7 @@ const PublishType = require("../models/PublishType");
const {
shell
} = require('electron')
const GeoCaptchaSolver = require("./GeoCaptchaSolver");
// const RDV_URL = "http://192.168.0.44:8000/test_appointment.html"
const RDV_URL = "https://rendezvousparis.hermes.com/client/register";
BLANK_URL = "about:blank"
@@ -114,8 +115,6 @@ class CommandorPage {
async chooseCountry(page) {
if (!page.isClosed()) {
try {
await page.locator(COUNTRY_ID).focus();
await delay(getRandomWaitTime())
await page.click(COUNTRY_ID);
@@ -126,7 +125,6 @@ class CommandorPage {
log(e);
this.isTerminated = true;
}
// await page.click(COUNTRY_ID);
}
}
@@ -295,7 +293,6 @@ class CommandorPage {
try {
let content = await currentPage.content();
let captcha_url = "geo.captcha-delivery.com/captcha";
if (content.toString().includes(captcha_url)) {
await this.checkAudioBtn();
for (let i = 0; i < 15; i++) {
@@ -327,7 +324,9 @@ class CommandorPage {
let audioBtn = await this.page.frameLocator("iframe").locator("#captcha__audio__button");
if (audioBtn) {
log("audioBtn found")
// audioBtn.click()
audioBtn.click()
let captchSolver = new GeoCaptchaSolver(this.page)
captchSolver.solve()
} else {
log("audioBtn not found")
}