#Run Selenium tests in Ubuntu in conjunction with Gitlab

5 messages · Page 1 of 1 (latest)

ruby pecan
#

How can I install the webkit2gtk-driver dependency which is mentioned here under the point "Linux" for the gitlab-runner user who I created like this:

# Create a GitLab Runner user
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash

?

When I installed it for the user gernot on my Ubuntu Server 22.04.2 I got the following (idk if this works if I do install it for another user then gitlab-runner, but I tried it):

gernot@build-server-ubuntu:~$ sudo apt install webkit2gtk-driver
[sudo] password for gernot:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  webkit2gtk-driver
0 upgraded, 1 newly installed, 0 to remove and 37 not upgraded.
Need to get 645 kB of archives.
After this operation, 1990 kB of additional disk space will be used.
Get:1 http://at.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 webkit2gtk-driver amd64 2.38.6-0ubuntu0.22.04.1 [645 kB]
Fetched 645 kB in 0s (2865 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package webkit2gtk-driver.
(Reading database ... 91636 files and directories currently installed.)
Preparing to unpack .../webkit2gtk-driver_2.38.6-0ubuntu0.22.04.1_amd64.deb ...
Unpacking webkit2gtk-driver (2.38.6-0ubuntu0.22.04.1) ...
Setting up webkit2gtk-driver (2.38.6-0ubuntu0.22.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

Does this only work on Ubuntu Desktop?

fallow crescent
#

While installing things for just one user is a thing you can do in Linux, it's not something that apt deals with. Just running sudo apt install webkit2gtk-driver will install it for all users on your system. So gitlab-runner will already have that dependency if you installed it on the system. The issue is something else, potentially that you need to reboot the system for some services to restart so they detect the driver

ruby pecan
#

Ok I try restart

And what about that

debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline

which I got during the installation?

#

Hm my tests do not work on Ubuntu. I get

ECONNREFUSED connect ECONNREFUSED 127.0.0.1:8600
even after the reboot

#

What do I have do specify instead of the exe on Ubuntu at this command:

tauri-driver --port 8600 --native-port 8601 --native-driver \"C:/Home/bin/edgedriver_win64/msedgedriver.exe\"

?

I think I need to start this tauri-driver somehow before like on windows, but how?