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

How to config chrome extensions? #631

Open
cmaster007 opened this issue Apr 8, 2024 · 1 comment
Open

How to config chrome extensions? #631

cmaster007 opened this issue Apr 8, 2024 · 1 comment

Comments

@cmaster007
Copy link

ChromiumOptionsExamples is not extensions

|script |map fixture |
|set value |start-maximized|for|args[0]|
|set value |--user-data-dir=C:/Users/Administrator/AppData/Local/Google/Chrome/User Data/ |for|args[1]|
|note|set value |headless|for|args[1]|
|set value |C:\Users\baoadmin\Downloads\Easy-Image-Control(v4.0).crx |for|extensions[0] |
|note|set value |C:/Users/Administrator/AppData/Local/Google/Chrome/User Data/ |for|--user-data-dir |
|note|set value |--user-data-dir=C:/Users/Administrator/AppData/Local/Google/Chrome/User Data/ ||for|--user-data-dir |
|note|set value|F:\Chrome\App\Chrome.exe|for|binary|
|$chromeProfile=|copy map |

`ChromeOptions options = new ChromeOptions();

    options.addExtensions(new File("path/to/extension.crx"));

    
    WebDriver driver = new ChromeDriver(options);`
@fhoeben
Copy link
Owner

fhoeben commented Oct 5, 2024

Sorry I didn't respond earlier.
At the moment this is not supported, but feel free to submit a PR. I would like to suggest that the extensions can be provided via a http://files... link so the extensions can be bundled/uploaded via the wiki.

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