Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

283.12. selenium-webdriver-at-spi-0.git20261013

KDE's WebDriver over AT-SPI2: drives and reads Qt applications through their accessibility tree

0.git20261013-1 · AGPL-3.0-or-later AND (GPL-2.0-only OR GPL-3.0-only) · 0.8 SBU · 651.6 KiB, 33 files · 44_apps, 55 of 422 · ports/core/devtools/selenium-webdriver-at-spi

Homepage: https://invent.kde.org/sdk/selenium-webdriver-at-spi

KDE’s WebDriver for AT-SPI2. A Flask service, selenium-webdriver-at-spi.py, answers the W3C WebDriver protocol by reading and operating Qt applications through their accessibility tree, and three small Qt programs do what the tree cannot: selenium-webdriver-at-spi-inputsynth types and clicks through KWin’s fake-input protocol, -screenshotter takes a screenshot through KWin’s ScreenShot2, and -recorder records through KPipeWire. KDOS runs it in the rig’s guest: testing/atspi/guest.sh --webdriver serves it inside the Plasma session and dumps each KDOS surface’s tree through it (see testing.md).

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtwayland, kcoreaddons, kwindowsystem, kwayland, kpipewire, plasma-wayland-protocols, wayland, libxkbcommon, python3, python3-gobject, python3-pyatspi, python3-flask, python3-lxml, numpy, gtk3, at-spi2-core.

Required by: no port names it.

Sources: selenium-webdriver-at-spi-0.git20261013.tar.gz (91.6 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install selenium-webdriver-at-spi'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D BUILD_TESTING=OFF \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

test -f "$PKG/usr/share/selenium-webdriver-at-spi/selenium-webdriver-at-spi.py"
test -x "$PKG/usr/bin/selenium-webdriver-at-spi-inputsynth"

Programs: selenium-webdriver-at-spi-appidlister, selenium-webdriver-at-spi-inputsynth, selenium-webdriver-at-spi-recorder, selenium-webdriver-at-spi-run, selenium-webdriver-at-spi-screenshotter.

Directories: /usr/lib/cmake/SeleniumWebDriverATSPI, /usr/share/licenses/selenium-webdriver-at-spi, /usr/share/selenium-webdriver-at-spi.

The source is a commit snapshot: upstream tags no releases. The version is the commit’s date.

find_pythonmodule() in the configure checks for the service’s Python modules — flask, pyatspi, lxml and gi — so they are build dependencies as well as run-time ones. The service also imports numpy and GTK 3’s introspection data, which the configure does not check; both are in depends.

selenium-webdriver-at-spi-run, the Ruby wrapper upstream’s CI starts the service with, is installed and not used: KDOS starts the service in the running session with python3 -m flask, and Ruby is not in depends.

The service’s click runs a control’s Press action whenever it lists one, and a Qt Quick check box answers Press without toggling. testing/atspi/atspi.py reads the tree directly, toggling check boxes with Toggle, when it writes goldens.