Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,27 @@ jobs:
- name: Install Firefox Webdriver
if: ${{ matrix.browser == 'firefox' }}
run: |
# Python by default installs from snap.
# Ubuntu's default Firefox package installs from snap.
# This isn't supported by geckodriver.
#
# The clean solution would be to use a sane distribution
# that doesn't use snap-based firefox by default.
# But GitHub Actions doesn't offer this.

sudo add-apt-repository ppa:mozillateam/ppa
sudo apt-get -qq -y update
sudo add-apt-repository --yes --no-update ppa:mozillateam/ppa
sudo apt-get -qq -y -o Acquire::Retries=3 -o APT::Update::Error-Mode=any update

echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001

Package: firefox
Pin: version 1:1snap1-0ubuntu2
Pin: version 1:1snap*
Pin-Priority: -1
' | sudo tee /etc/apt/preferences.d/mozilla-firefox > /dev/null
sudo apt-get -y install firefox

sudo apt-get install -y firefox

poetry run seleniumbase install geckodriver


Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ webpack-stats.json

# pytest
.pytest_cache/
downloaded_files/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
Loading