Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serenity won't work with vanilla Ubuntu 22.04 and Firefox #3014

Open
gurgl opened this issue Jan 12, 2023 · 0 comments
Open

Serenity won't work with vanilla Ubuntu 22.04 and Firefox #3014

gurgl opened this issue Jan 12, 2023 · 0 comments

Comments

@gurgl
Copy link

gurgl commented Jan 12, 2023

Because how Firefox is installed by default in Ubuntu its now impossible to run Serenity with Firefox on Ubuntu 22.04. This is because of how Snap's security model work and is described here https://bugzilla.mozilla.org/show_bug.cgi?id=1766125

There must be means to provide geckodriver with an argument

geckodriver --profile-root

I haven't had time to dwell into the details, but setting to "~/tmp" works for me. I had to bypass this limitation by creating a script geckodriver_tmp.sh:

#!/bin/sh
/snap/bin/geckodriver --profile-root ~/tmp "$@"

When doing this autodownload of drivers cannot be turned on so shut it off. So in src/test/resources/serenity.conf file make sure the following are added:

drivers {
  linux {
    webdriver.gecko.driver = /pathto/geckodriver_tmp.sh
  }
}

webdriver.autodownload = false
@gurgl gurgl changed the title --profile-root Serenity won't work with vanilla Ubuntu 22.04 and Firefox Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant