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

Ability to mount a volume #303

Open
lorsatti opened this issue Jul 27, 2021 · 1 comment
Open

Ability to mount a volume #303

lorsatti opened this issue Jul 27, 2021 · 1 comment

Comments

@lorsatti
Copy link

New Feature: Mount a Volume

Like ./cm selenoid update --volumes ["/mnt/share:/home/selenium/Uploads:ro"], translating to a volume section for each browser version in browsers.json:

"volumes": [
  "/mnt/share:/home/selenium/Uploads:ro"
]

Use Case

It would be useful while testing browser extensions, or if a file for fake audio capture is needed in the container.
Example with ChromeOptions:

ChromeOptions options() {
    ChromeOptions opt = new ChromeOptions();
    //set path of extension directory
    opt.addArguments("load-extension=/home/selenium/Uploads/MyExtension_v0.1.2");
    //set path of .wav file for fake audio capture
    opt.addArguments("use-file-for-fake-audio-capture=/home/selenium/Uploads/speaker.wav");
    //...
    return opt;
}
@vania-pooh
Copy link
Member

We consider cm a tool for quick installation with reasonable default settings suitable for 90% of cases. Using volumes is an advanced feature and is always available by editing browsers.json file. So saving this as a feature request but not sure when this is going to be implemented.

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

No branches or pull requests

2 participants