setup-firefox
setup-firefox copied to clipboard
Getting error Error: The process '/__t/firefox/latest/x64/firefox' failed with exit code 1
Hello I'm currently trying to run our Selenium Tests in Firefox only. I keep trying to use browser-actions/setup-firefox@latest but it's giving me the error below:
I was able to install
browser-actions/setup-geckodriver@latest but not Firefox.
Below is my full .yml file. Please let me know if I am missing something. Thank you!
name: Create Selenium Scheduled Workflow
on:
schedule:
- cron: '0 10 * * 1,4'
push:
branches: [ master ]
jobs:
downloadCoursesAndEmbeddingH5PMedia:
runs-on: ubuntu-latest
environment: release
container:
image: python:latest
strategy:
matrix:
firefox: [ 'latest' ]
steps:
- shell: bash
run: apt-get update
- shell: bash
run: |
DEBIAN_FRONTEND=noninteractive apt-get install -y \
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb \
binutils \
fonts-ipafont fonts-ipaexfont
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: pip install -r requirements.txt
- uses: browser-actions/setup-geckodriver@latest
- run: geckodriver --version
# - uses: browser-actions/setup-firefox@latest
# - run: firefox --version
- name: Prepare Firefox
uses: browser-actions/setup-firefox@latest
- name: Firefox version
run: firefox --version
- name: run feature file
run: behave "features/firstFeature.feature" "features/secondFeature.feature"
- uses: actions/upload-artifact@v3
if: failure()
with:
name: Create Selenium artifacts
path: ./cypress/videos/**.feature.mp4
I have less experience of running container in the GitHub Actions. But I guess the issue is not caused by the this action by the error message you provided. I think Firefox does not support running by the root user. Could you try to run Firefox as non-root user?