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

Skipping chromedriver download during installation #1505

Open
JacksonLei123 opened this issue Jan 9, 2025 · 6 comments
Open

Skipping chromedriver download during installation #1505

JacksonLei123 opened this issue Jan 9, 2025 · 6 comments

Comments

@JacksonLei123
Copy link

JacksonLei123 commented Jan 9, 2025

Describe the bug

Is there any way to skip chromedriver download when running appium plugin install --source=npm appium-device-farm ? Like passing a flag similar to --chromedriver-skip-install when downloading appium. This could be useful for those who prefer to manually install a chromedriver in a custom directory

@sudharsan-selvaraj
Copy link
Member

sudharsan-selvaraj commented Jan 13, 2025

You need to pass --plugin-device-farm-skip-chrome-download=false to skip automatic chromedriver download while starting the appium server

@JacksonLei123
Copy link
Author

JacksonLei123 commented Jan 13, 2025

Does that flag work while installing the plugin itself? Because running appium plugin install --source=npm appium-device-farm already tries to download chromedriver. I'm trying to skip chromedriver installation during the plugin install phase. I'm also tried running appium plugin install --source=npm appium-device-farm --plugin-device-farm-skip-chrome-download=false but unsurprisingly, the flag --plugin-device-farm-skip-chrome-download=false was not recognized since I hadn't been able to install the plugin yet

@saikrishna321
Copy link
Member

@JacksonLei123 CLI flag is post installation and not during installation. We don't download chromedriver during installation. Can you please share logs if something is failing

@JacksonLei123
Copy link
Author

JacksonLei123 commented Jan 13, 2025

Getting the following error when running appium plugin install --source=npm appium-device-farm:

Original error: Request failed with status code 400. CDInstaller Error installing Chromedriver: Cannot retrieve the information about available Chromedrivers from https://chromedriver.storage.googleapis.com, https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json. Please make sure these URLs are available within your local network, check Appium server logs and/or consult the driver troubleshooting guide

@saikrishna321
Copy link
Member

@JacksonLei123 please share full logs.

Plugin nor Appium does not installation any chrome

@sudharsan-selvaraj
Copy link
Member

Can you try setting below environment variable and install the plugin

export APPIUM_SKIP_CHROMEDRIVER_INSTALL=1

Reference: https://github.com/appium/appium-chromedriver?tab=readme-ov-file#skipping-binary-installation

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

3 participants