Appium/WDA has referred to XCTest and XCTAutomationSupport frameworks. Recently, some header files for XCUITest has removed but they still worked. Thus, I wondered where the removed files. Then, I found XCUIAutomation.framework has existed since Xcode 13 in a private framework. For example, Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCUIAutomation.framework. Appium/WDA failed to build when I simply added the framework in linker,…More
Tag Archives: iOS
[Appium] make appium/WDA re-use fast with “testProductsPath” since Xcode 13.3 beta 2
https://developer.apple.com/documentation/xcode-release-notes/xcode-13_3-release-notes -testProductsPath argument for xcodebuild exists in Xcode 13.3 beta 2. It helps to split xcodebuild for testing. xcodebuild already has build-for-testing and test-without-building. This argument enhances the usage more. In Appium/WDA build already has some helpful methods to run WDA fast. appium:useXctestrunFile, appium:usePrebuiltWDA and appium:derivedDataPath. This testProductsPath helps appium:useXctestrunFile way to make it simple.…More
[Appium] Progressive Web Apps on iOS
Progressive Web Apps (PWA) works as an app on iOS while the base is Web Site. Appium allows you to automate, but it needs a few tricks. Establish a session with 1) autoLaunch: false and bundleId: ‘com.apple.mobilesafari’, or 2) without app and bundleId but with includeSafariInWebviews: true Launch the home screen with activating com.apple.springboard Click…More
[iOS] note about codesign
This article is a note about codesign in iOS. Apple products have codesign CLI to manage codesign features. Once you unzip .ipa file (iOS case), the command allows you to check the codesign data etc. Then, you could see the below data. embedded.mobileprovision in the .app is the provision profile stuff. _CodeSignature has sign information.…More
[Appium] a tip to launch an iOS app with language and locale
Appium can launch an iOS app with an arbitrary language/locale by XCTest feature. The well known way is appium:language and appium:locale capabilities. The behind is simple. Appium provides -AppleLanguages and -AppleLocale process arguments to the launching process to the application under test. It means you can launch an arbitrary application with an arbitrary language. It…More
[Appium][XCTest] XCTest(UI) requires passcode/fingerprint on iOS 15
I noticed that XCTest(UI) required us to input passcode to run on a real device if the device has had a passcode security preference on iOS 15. The passcode can be fingerprint or face id. (It depends on its preference) It means Appium/WDA also gets the same issue. It should not be an impact on…More
[Appium][Flutter] Handling WebView contexts in flutter-appium-driver
I’ve recently added WebView feature in the appium-flutter-driver Webview still work in progress? #45. The v0.0.32 should have it. debuggingEnabled is necessary t enable WebView availability in Flutter. Then, appium UIA2/XCUITest, which runs to handle the application under test as part of appium-flutter-driver, can find its WebView context. So, you can do like the below code…More
[iOS] alternative of iproxy: tidevice and ios-go
I’ve known of the repository and CLI, but let me leave this link here as my note. https://github.com/alibaba/taobao-iphone-device https://github.com/danielpaulus/go-iosMore
[Appium] response of /source by Appium/WDA
https://github.com/appium/WebDriverAgent returns the response with header Content-Type: application/json;charset=UTF-8. The body encode should be UTF-8, but /source endpoint by the appium/WebDriverAgent was detected as ASCII-8BIT by some http clients. appium/WebDriverAgent returns the XML body with NSUTF8StringEncoding. According to the documentation, the encoding is: An 8-bit representation of Unicode characters, suitable for transmission or storage by ASCII-based…More
[iOS] Instruments template and xctrace templates
Instruments will be deprecated in Xcode 12 as below. Previously, instruments command was used. The result of xcrun xctrace list templates: The result of instruments -s:More