We want Appium script to use WDA agent provided by device farm provider

Problem: We want to use WDA which is provided by device farm provider they download the WDA file at Library path. However, Appium install WDA which is default present in Appium folder.

Can we make script to use device farm WDA instead of default WDA?

Urgent help will be appreciated.

look at https://github.com/appium/appium-xcuitest-driver#desired-capabilities
use derivedDataPath with usePrebuiltWDA

1 Like

Thank You Bro. Thanks for responding, I will give it a try and get back to you with Sweets and more praise.
Thanks U again.

I used both capabilities as suggested by you. However, now I am getting a Xcode error code 65.

capabilities.setCapability(“usePrebuiltWDA”, “true”);
capabilities.setCapability(“derivedDataPath”, “/Library/AstroFarmService/iOS/bin/wda/Debug-iphoneos/AstroFarm-Runner.app”);

I used both capabilities as suggested by you. However, now I am getting a Xcode error code 65.

capabilities.setCapability(“usePrebuiltWDA”, “true”);
capabilities.setCapability(“derivedDataPath”, “/Library/AstroFarmService/iOS/bin/wda/Debug-iphoneos/AstroFarm-Runner.app”);

Hi.

Here a bit more details https://appium.io/docs/en/advanced-concepts/wda-custom-server/

Also ask AstroFarm to provide example of code for iOS. I see they have only android setup.

Make sure also your ipa file has developer signature that include UIID of test device.

1 Like