Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not add Extension in Java Selenium #10

Open
tranmanh098 opened this issue Mar 20, 2024 · 2 comments
Open

Can not add Extension in Java Selenium #10

tranmanh098 opened this issue Mar 20, 2024 · 2 comments

Comments

@tranmanh098
Copy link

//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
Copy link
Author

tranmanh098 commented Mar 20, 2024

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
Copy link

try to use zip version of folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants