mullvad / mullvad-browser

Privacy-focused browser for Linux, macOS and Windows. Made in collaboration between @torproject and @mullvad
https://mullvad.net/browser
1.28k stars 25 forks source link

How to use Mullvad browser in selenium on linux #187

Open khannavivek opened 11 months ago

khannavivek commented 11 months ago

I am struggling to use mullvad browser in selenium on Linux, If someone can provide some reference code then it would be great.

from selenium import webdriver
from selenium.webdriver.firefox.service import Service
from selenium.webdriver.firefox.options import Options
service = Service(executable_path="mullvad-browser/Browser/mullvadbrowser")

driver = webdriver.Firefox(service=service) Upon using the above code, the mullvad browser pops up but the code is stuck forever on initializing the webdriver.

ruihildt commented 10 months ago

We are not running Mullvad Browser in Selenium currently, so I can't help you.

Here's a project doing something for Tor Browser, I assume it should be transposable for Mullvad Browser, since it's very similar.