[GH-ISSUE #2] ChromeDriver not working #1

Closed
opened 2026-03-01 15:39:05 +03:00 by kerem · 7 comments
Owner

Originally created by @andrcuns on GitHub (May 3, 2017).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/2

Hi,
Great project, just what I was looking for to support our mobile testing with emulator.
One issue is that libgconf-2.so.4 is missing for chromedriver to work. Please consider adding libgconf-2-4 to installed packages for it to work.

Originally created by @andrcuns on GitHub (May 3, 2017). Original GitHub issue: https://github.com/budtmo/docker-android/issues/2 Hi, Great project, just what I was looking for to support our mobile testing with emulator. One issue is that libgconf-2.so.4 is missing for chromedriver to work. Please consider adding libgconf-2-4 to installed packages for it to work.
kerem closed this issue 2026-03-01 15:39:05 +03:00
Author
Owner

@budtmo commented on GitHub (May 3, 2017):

Hi @andrcuns,

Chromedriver is available only for android version 7.0 and 7.1.1. please try with one of those versions and let me know if you still need anything else.
btw, I have a simple UI test that is written in python for mobile website testing with chrome browser: https://github.com/butomo1989/docker-android/blob/master/example/android/python/msite_simple_chrome.py

<!-- gh-comment-id:298867235 --> @budtmo commented on GitHub (May 3, 2017): Hi @andrcuns, Chromedriver is available only for android version 7.0 and 7.1.1. please try with one of those versions and let me know if you still need anything else. btw, I have a simple UI test that is written in python for mobile website testing with chrome browser: https://github.com/butomo1989/docker-android/blob/master/example/android/python/msite_simple_chrome.py
Author
Owner

@andrcuns commented on GitHub (May 3, 2017):

I was trying it out with 7.1.1, selenium version 3.4.0 and java and chromedriver fails with libgconf-2.so.4 missing. I rebuilt the image locally with added libgconf-2-4 library and it works fine afterwards.
I can reproduce the problem and post appium log if necessary.

<!-- gh-comment-id:298874063 --> @andrcuns commented on GitHub (May 3, 2017): I was trying it out with 7.1.1, selenium version 3.4.0 and java and chromedriver fails with libgconf-2.so.4 missing. I rebuilt the image locally with added libgconf-2-4 library and it works fine afterwards. I can reproduce the problem and post appium log if necessary.
Author
Owner

@budtmo commented on GitHub (May 3, 2017):

thank you @andrcuns. it will be great if you can post the log and steps how you reproduce the problem here.

<!-- gh-comment-id:298890260 --> @budtmo commented on GitHub (May 3, 2017): thank you @andrcuns. it will be great if you can post the log and steps how you reproduce the problem here.
Author
Owner

@andrcuns commented on GitHub (May 3, 2017):

Maybe I am missing something but had to actually fight a bit to copy the output of Appium server since doesn't look like VNC shares the clipboard and couldn't find where it is stored in some log files :D

Images tested:
butomo1989/docker-android-x86-7.1.1
butomo1989/docker-android-x86-6.0
most likely other as well.

Following appium client is used:
io.appium:java-client:4.1.2

Following capabilities are set:

DesiredCapabilities capabilities = new DesiredCapabilities()
capabilities.setCapability(DEVICE_NAME, "Android Emulator")
capabilities.setCapability(PLATFORM_NAME, "Android")
capabilities.setCapability(BROWSER_NAME, MobileBrowserType.CHROME)
capabilities.setCapability(NEW_COMMAND_TIMEOUT, 15)
capabilities.setCapability("clearSystemFiles",true)

Following scenario is executed:
Given user is on some web page

Following exception is thrown:

[debug] [Chromedriver] Changed state to 'starting'
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[Chromedriver] Set chromedriver binary as: /usr/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/linux/chromedriver_64
[Chromedriver] Killing any old chromedrivers, running: pkill -15 -f "/usr/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/linux/chromedriver_64.*--port=8000"
[Chromedriver] No old chromedrivers seemed to exist
[Chromedriver] Spawning chromedriver with: /usr/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/linux/chromedriver_64 --url-base=wd/hub --port=8000 --adb-port=5037
[Chromedriver] [STDERR] /usr/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/linux/chromedriver_64: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
[Chromedriver] Chromedriver exited unexpectedly with code 127, signal null
[debug] [Chromedriver] Changed state to 'stopped'

Proposed solution:
Installing libgconf-2-4 seems to fix the problem.

<!-- gh-comment-id:298907475 --> @andrcuns commented on GitHub (May 3, 2017): Maybe I am missing something but had to actually fight a bit to copy the output of Appium server since doesn't look like VNC shares the clipboard and couldn't find where it is stored in some log files :D Images tested: butomo1989/docker-android-x86-7.1.1 butomo1989/docker-android-x86-6.0 most likely other as well. Following appium client is used: io.appium:java-client:4.1.2 Following capabilities are set: ```groovy DesiredCapabilities capabilities = new DesiredCapabilities() capabilities.setCapability(DEVICE_NAME, "Android Emulator") capabilities.setCapability(PLATFORM_NAME, "Android") capabilities.setCapability(BROWSER_NAME, MobileBrowserType.CHROME) capabilities.setCapability(NEW_COMMAND_TIMEOUT, 15) capabilities.setCapability("clearSystemFiles",true) ``` Following scenario is executed: Given user is on some web page Following exception is thrown: ``` [debug] [Chromedriver] Changed state to 'starting' [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected [Chromedriver] Set chromedriver binary as: /usr/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/linux/chromedriver_64 [Chromedriver] Killing any old chromedrivers, running: pkill -15 -f "/usr/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/linux/chromedriver_64.*--port=8000" [Chromedriver] No old chromedrivers seemed to exist [Chromedriver] Spawning chromedriver with: /usr/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/linux/chromedriver_64 --url-base=wd/hub --port=8000 --adb-port=5037 [Chromedriver] [STDERR] /usr/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/linux/chromedriver_64: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory [Chromedriver] Chromedriver exited unexpectedly with code 127, signal null [debug] [Chromedriver] Changed state to 'stopped' ``` Proposed solution: Installing libgconf-2-4 seems to fix the problem.
Author
Owner

@budtmo commented on GitHub (May 3, 2017):

thank you @andrcuns. I will install libgconf-2-4 in the next release, if you want, you can create PR for it. :D

<!-- gh-comment-id:298930392 --> @budtmo commented on GitHub (May 3, 2017): thank you @andrcuns. I will install libgconf-2-4 in the next release, if you want, you can create PR for it. :D
Author
Owner

@andrcuns commented on GitHub (May 3, 2017):

Sure, should be a pretty small PR :)

<!-- gh-comment-id:299048257 --> @andrcuns commented on GitHub (May 3, 2017): Sure, should be a pretty small PR :)
Author
Owner

@budtmo commented on GitHub (May 4, 2017):

fixed in #3.
release tag: https://github.com/butomo1989/docker-android/releases/tag/0.4

<!-- gh-comment-id:299124478 --> @budtmo commented on GitHub (May 4, 2017): fixed in #3. release tag: https://github.com/butomo1989/docker-android/releases/tag/0.4
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-android#1
No description provided.