webdriver-bidi demo

This commit is contained in:
Martin Pitt 2024-07-16 14:20:55 +02:00
parent 6c4a43bea6
commit 0ad4afe77d
3 changed files with 128 additions and 1 deletions

10
chromium-headless-wrapper Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
# This is a hack around `headless_shell --version` not working
set -eu
if [ "$1" = "--version" ]; then
echo "Chromium $(rpm -q --queryformat '%{VERSION}' chromium-headless) Fedora Project"
exit 0
fi
exec /usr/lib*/chromium-browser/headless_shell "$@"