From 0e1970850387de7ce81140d23a3b8caffc7a922a Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Sun, 2 Jan 2022 19:50:49 +0100 Subject: [PATCH] typo --- main.stealth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.stealth.js b/main.stealth.js index c3fef14..85123a2 100644 --- a/main.stealth.js +++ b/main.stealth.js @@ -115,7 +115,7 @@ const newStealthContext = async (browser, contextOptions = {}) => { const iframe = page.frameLocator('#webPurchaseContainer iframe') await iframe.locator('button:has-text("Place Order")').click(); await iframe.locator('button:has-text("I Agree")').click(); - // This is true even when there is no capture shown! That was the reason why old.stealth.js worked - because it did not have this check... + // This is true even when there is no captcha shown! That was the reason why old.stealth.js worked - it did not have this check... TODO check for hcaptcha // if (await iframe.frameLocator('#talon_frame_checkout_free_prod').locator('text=Please complete a security check to continue').count() > 0) { // console.error('Encountered hcaptcha. Giving up :('); // await page.pause();