Skip to content

Add support for pinning specific Edge version (not stable/beta/dev/canary) #560

Description

@danielhjacobs

For Chrome, I can do this:

      - name: Install pinned Chrome (workaround for actions/runner-images#14169)
        if: matrix.browser == 'chrome'
        id: setup-chrome
        uses: browser-actions/setup-chrome@v2
        with:
          chrome-version: '148.0.7778.167'
          install-dependencies: true
          install-chromedriver: true

For Edge, I have to do this:

      - name: Install pinned Edge (workaround for actions/runner-images#14223)
        if: matrix.browser == 'edge'
        run: |
          # Download and install pinned Edge
          wget https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_148.0.3967.96-1_amd64.deb
          sudo apt-get install --allow-downgrades -y ./microsoft-edge-stable_148.0.3967.96-1_amd64.deb

          # Download and extract pinned EdgeDriver
          wget https://msedgedriver.microsoft.com/148.0.3967.96/edgedriver_linux64.zip
          unzip edgedriver_linux64.zip
          sudo mv msedgedriver /usr/local/bin/msedgedriver
          sudo chmod +x /usr/local/bin/msedgedriver

          # Export paths for WDIO
          echo "EDGE_BIN=/usr/bin/microsoft-edge" >> "$GITHUB_ENV"
          echo "EDGEWEBDRIVER=/usr/local/bin/msedgedriver" >> "$GITHUB_ENV"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions