Open Bug 1755140 Opened 3 years ago Updated 2 years ago

Selenium with flatpak does not open the page

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 97
defect

Tracking

()

UNCONFIRMED

People

(Reporter: yellowhat46, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.2 Chrome/87.0.4280.144 Safari/537.36

Steps to reproduce:

Hi,
I would like to use selenium against the flatpak version of Firefox (flatpak install -y flathub org.mozilla.firefox).

Consider the following example code:

from selenium import webdriver
from selenium.webdriver.firefox.options import Options

options = Options()
options.binary_location = "/var/lib/flatpak/exports/bin/org.mozilla.firefox"
options.add_argument("--marionette")
options.add_argument("--profile /home/vasco/.mozilla")
options.add_argument("--private")

with webdriver.Firefox(options=options) as driver:
    driver.get("http://google.com")
    driver.quit()

I have opened a bug on selenium (https://github.com/SeleniumHQ/selenium/issues/10283), maybe the remote code is not packaged?

My user agent:

Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0

Thanks

Actual results:

The firefox window open but does not open google.com

Expected results:

Load the google.com page and exit.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Blocks: flatpak
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.