diff --git a/test/common/webdriver_bidi.py b/test/common/webdriver_bidi.py index de7e36c70fd4..346487037bbc 100644 --- a/test/common/webdriver_bidi.py +++ b/test/common/webdriver_bidi.py @@ -348,7 +348,7 @@ async def start_bidi_session(self) -> None: candidate_binaries = ["/usr/bin/chromium-browser", "/usr/bin/chromium"] if self.headless: - candidate_binaries.insert(0, "/usr/lib64/chromium-browser/headless_shell") + candidate_binaries.append("/usr/lib64/chromium-browser/headless_shell") binaries = [path for path in candidate_binaries if os.path.exists(path)] if not binaries: raise WebdriverError(f"no Chromium binary found: tried {' '.join(candidate_binaries)}")