summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2025-02-06 14:23:38 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2025-02-07 17:05:06 +0100
commitd45dea56c5030366115b4ac29e23e3ccd88e2a50 (patch)
treecc7ff6b36d5997aae9c091f96665646d86429c8a /tests
parent8c610404bdf20cefd05c9e8f2f5a52d835f242a3 (diff)
[fix] selenium: binary is not a Firefox executable
Since Ubuntu installs firefox frrom snap, we can't use any longer ``Browser('firefox')``. [1] https://github.com/searxng/searxng/pull/3663#issuecomment-2255963036 [2] https://splinter.readthedocs.io/en/latest/drivers/firefox.html#custom-binary-path Suggested-by: @allendema Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/robot/__main__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/robot/__main__.py b/tests/robot/__main__.py
index 7f380aeda..0b438745e 100644
--- a/tests/robot/__main__.py
+++ b/tests/robot/__main__.py
@@ -7,6 +7,7 @@ import os
import subprocess
import traceback
import pathlib
+import shutil
from splinter import Browser
@@ -53,6 +54,9 @@ class SearxRobotLayer:
def run_robot_tests(tests):
print('Running {0} tests'.format(len(tests)))
+ print(f'{shutil.which("geckodriver")}')
+ print(f'{shutil.which("firefox")}')
+
for test in tests:
with Browser('firefox', headless=True, profile_preferences={'intl.accept_languages': 'en'}) as browser:
test(browser)