Selenium with flatpak does not open the page
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
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.
Comment 1•3 years ago
|
||
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.
Description
•