File tree Expand file tree Collapse file tree
TransactionMobile.Maui.UiTests/Drivers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,22 +55,15 @@ jobs:
5555 - name : Install Appium XCUITest Driver from GitHub
5656 run : |
5757 npm install -g appium --unsafe-perm=true --allow-root
58- # appium driver install --source=git --package=appium-xcuitest-driver https://github.com/appium/appium-xcuitest-driver.git
58+ appium driver install --source=git --package=appium-xcuitest-driver https://github.com/appium/appium-xcuitest-driver.git
5959
60- - name : Install Appium XCUITest Driver (Pinned Commit)
60+ - name : Download Prebuilt WebDriverAgent
6161 run : |
62- git clone https://github.com/appium/appium-xcuitest-driver.git
63- cd appium-xcuitest-driver
64- npm install
65- mkdir -p ~/.appium/node_modules/
66- cp -R . ~/.appium/node_modules/appium-xcuitest-driver
62+ curl -L -o WebDriverAgent.zip https://github.com/appium/WebDriverAgent/releases/download/v9.4.1/WebDriverAgentRunner-Runner.zip
63+ unzip WebDriverAgent.zip -d WebDriverAgent
6764
68- - name : Prebuild WebDriverAgent
69- run : |
70- xcodebuild -project ~/.appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj \
71- -scheme WebDriverAgentRunner \
72- -destination "platform=iOS Simulator,id=$UDID" \
73- build-for-testing
65+ - name : Set WebDriverAgent Environment Variable
66+ run : echo "WDA_PATH=$(pwd)/WebDriverAgent" >> $GITHUB_ENV
7467
7568 - name : Start Appium Server
7669 run : |
Original file line number Diff line number Diff line change @@ -97,7 +97,9 @@ private static void SetupiOSDriver(AppiumLocalService appiumService) {
9797 driverOptions . AddAdditionalAppiumOption ( "useNewWDA" , false ) ;
9898 driverOptions . AddAdditionalAppiumOption ( "wdaStartupRetryInterval" , 10000 ) ;
9999 driverOptions . AddAdditionalAppiumOption ( "wdaStartupRetries" , 4 ) ;
100-
100+ driverOptions . AddAdditionalAppiumOption ( "usePrebuiltWDA" , true ) ;
101+ driverOptions . AddAdditionalAppiumOption ( "derivedDataPath" , Environment . GetEnvironmentVariable ( "WDA_PATH" ) ) ;
102+ driverOptions . AddAdditionalAppiumOption ( "updatedWDABundleId" , "com.facebook.WebDriverAgentRunner" ) ;
101103
102104 AppiumDriverWrapper . Driver = new OpenQA . Selenium . Appium . iOS . IOSDriver ( appiumService , driverOptions , TimeSpan . FromMinutes ( 10 ) ) ;
103105 }
You can’t perform that action at this time.
0 commit comments