capsolver / capsolver-browser-extension

This browser extension supports recognition of the most popular CAPTCHAs, including reCAPTCHA v2, v3, reCAPTCHA v2 invisible, enterprise, hCaptcha, FunCaptcha, Geetest, AWS Waf Captcha, Amazon Captcha, Cloudflare v3(Turnstile) Captcha and regular picture captcha with numbers and letters(ImageToText).
https://www.capsolver.com/
48 stars 2 forks source link

Can not add Extension in Java Selenium #10

Open tranmanh098 opened 7 months ago

tranmanh098 commented 7 months ago

//My code //Do I need to deposit money into my account first to use the API key ? public class ChromeWithPlugin { public static void main(String[] args) {

    ChromeOptions options = new ChromeOptions();
    options.addExtensions(new File("lib\\CapSolverExtension.crx"));
 // Thiết lập cho chrome
    options.setBinary("lib\\chrome-win64\\chrome.exe");

//options.addArguments("--headless");.

    WebDriver driver = new ChromeDriver(options);
    driver.get("https://google.com");
    System.out.println();
}

}

tranmanh098 commented 7 months ago

This is problem log: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: cannot process extension #1 from unknown error: cannot read manifest

sergio-itru commented 6 months ago

try to use zip version of folder