capsolver-browser-extension
capsolver-browser-extension copied to clipboard
Can not add Extension in Java Selenium
//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();
}
}
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
try to use zip version of folder