[FIX] in selenium_lib firefox snap path

This commit is contained in:
Manel Guechetouli 2026-02-05 15:59:10 -05:00 committed by Mathieu Benoit
parent 273763a4fb
commit 8c3a3fb4c1

View file

@ -228,7 +228,9 @@ class SeleniumLib(object):
)
elif not self.config.use_network:
# test snap firefox for Ubuntu first
snap_firefox_path = "/snap/bin/firefox"
snap_firefox_path = (
"/snap/firefox/current/usr/lib/firefox/firefox"
)
firefox_path_exist = Path(snap_firefox_path).exists()
if firefox_path_exist:
firefox_options.binary_location = snap_firefox_path