diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 174f95a8..3379b1b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,7 +85,7 @@ jobs: SAUCELABS_KEY: ${{ secrets.SAUCELABS_KEY }} run: | cd SauceLabsTestApp/ - python3 -m pip install Appium-Python-Client + python3 -m pip install Appium-Python-Client==2.11.1 python3 sl_tests.py ${{ matrix.os }} ${{ needs.saucelabs-prepare.outputs.sl_file_id }} check_links: runs-on: ubuntu-22.04 diff --git a/SplunkRumWorkspace/SauceLabsTestApp/sl_tests.py b/SplunkRumWorkspace/SauceLabsTestApp/sl_tests.py index 8b619bdf..b5472002 100644 --- a/SplunkRumWorkspace/SauceLabsTestApp/sl_tests.py +++ b/SplunkRumWorkspace/SauceLabsTestApp/sl_tests.py @@ -3,7 +3,6 @@ from appium import webdriver from datetime import datetime from selenium.webdriver.common.by import By -from selenium.webdriver.safari.options import Options from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import sys @@ -25,7 +24,7 @@ def setUp(self): 'name': 'SplunkRum tests' + currentTime, 'accessKey': os.environ['SAUCELABS_KEY'], 'username': os.environ['SAUCELABS_USER'] - } + } options.set_capability('sauce:options', sauce_options) url = f'https://ondemand.us-west-1.saucelabs.com:443/wd/hub' self.driver=webdriver.Remote(url, options=options)