Univention Bugzilla – Bug 46432
ucs-test-selenium should depend on xvfb and python-selenium
Last modified: 2019-02-27 18:05:19 CET
ucs-test-selenium is lacking a couple of dependencies, comparing to the advertisement: https://hutten.knut.univention.de/mediawiki/index.php/Automatisierte_UMC_Tests#Ausf.C3.BChrung_von_Selenium-Tests root@master10:~# univention-install ucs-test-selenium [...] root@master10:~# /usr/share/ucs-test/86_selenium/10_product_test_password_change -f /usr/share/ucs-test/selenium: 3: /usr/share/ucs-test/selenium: /usr/bin/xvfb-run: not found root@master10:~# univention-install xvfb [...] root@master10:~# /usr/share/ucs-test/86_selenium/10_product_test_password_change -f Traceback (most recent call last): File "10_product_test_password_change", line 16, in <module> from selenium import webdriver ImportError: No module named selenium root@master10:~# univention-install python-selenium [...] root@master10:~# /usr/share/ucs-test/86_selenium/10_product_test_password_change -f Cleanup after exception: <class 'selenium.common.exceptions.WebDriverException'> Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home root@master10:~# which chromedriver /usr/bin/chromedriver -> Brick wall.
I had to manually edit the flase static path in /usr/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py +61
The problem is that we need a specific version of python-selenium which is only installable via pip. There is ". utils.sh; install_selenium".