[iOS]screenshot testing tools

Below are not new, but famous tools to achieve screenshot testing on iOS. It helps check view layer. https://github.com/mozilla-mobile/MappaMundi https://github.com/uber/ios-snapshot-test-case https://github.com/pointfreeco/swift-snapshot-testing We say “snapshot” testing sometimes, but “snapshot” is not only for screenshot comparison check. So, screenshot testing is more proper in this time, I think. I like swift-snapshot-testing since it has an interesting page,…More

[Android][ChromeDriver][Appium]chromeOptions to disable welcome screen

Chromedriver checked Appium can provide chromeOption like: or https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/caps.md Then, we can give disabling welcome screen on chrome with below. https://github.com/bayandin/chromedriver/blob/5ba09b3f3f184aa3448d167d4809a73eac46a155/chrome_launcher.cc#L100 https://chromium.googlesource.com/chromium/src/+/master/chrome/test/chromedriver/chrome_launcher.cc#100 BTW, we can see which capabilities are available as the chrome option in https://chromium.googlesource.com/chromium/src/+/master/chrome/test/chromedriver/capabilities.cc#541 . The args is there, but prefs is only in non Android. So, prefs is available PC chrome.More

[XCTest][iOS][Appium] Get all of elements in XCUIElementQuery

I posted [Appium][xcuitest]Compare getting outputs speed of source format before. Today, I would like to dive a bit more. The description shows debugDescription of available elements. So, how to get the available elements ? That is allElementsBoundByAccessibilityElement Immediately evaluates the query and returns an array of elements bound to the resulting accessibility elements. In fb_descriptionRepresentation, it…More

[iOS][Appium] A note about usbmuxd

Appium has been used libimobiledevice seriese, ios-deploy and ifuse to communicate with Apple devices. The CLI is very useful, but we’re switching it with appium-ios-device from next release, Appium 1.15.0. macOS has usbmuxd in /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/Resources/usbmuxd to communicate with Apple devices. It is launched by /System/Library/LaunchDaemons/ com.apple.usbmuxd.plist. As a readme on appium-ios-device, the library communicates with…More

[Android]W3C WebDriver in ChromeDriver

The most noticeable change is ChromeDriver now runs in W3C standard compliant mode by default. Other changes include: ChromeDriver 75.0.3770.8 in http://chromedriver.chromium.org/downloads We can call non-W3C protocol adding below option as capabilities, but finally it can handle W3C spec by default! The value should be boolean. Lower Android browser can not work newer chrome driver, so…More

[iOS]WebDriver for Safari in iOS 13, finally

WebDriver is Coming to Safari in iOS 13 has been announced, and finally it supports iOS!! Currently, ios_webkit_debug_prozy is the only way to automate Safari browser on iOS. Appium also use it to handle Safari for iOS devices. The library has been maintained by Google. I believe many developers has hoped to support such automation…More

[Appium][iOS] Handle iOS apps via Appium over the network

From Appium 1.13.0, wdaBaseUrl has been introduced. The capability allows us to configure the URL of communication channel between xcuitest-driver which is running on the host machine and WDA which is running on the test device. Once the capability is provided like below, Appium build WDA as xcodebuild and install it to the device over…More

[Appium][iOS]Configure devices via configuration profile feature via Appium

Appium provides Over-the-Air Profile Delivery and Configuration feature to configure devices via configuration profile. Appium already provides to set it as a mobile command. It helps configure your test device with the profile without your hand work. http://appium.io/docs/en/commands/mobile-command/ http://appium.io/docs/en/writing-running-appium/ios/ios-xctest-install-certificate/index.html Recent documentation about it is: https://developer.apple.com/documentation/devicemanagement/using_configuration_profilesMore

[Appium][xcuitest]Compare getting outputs speed of source format

Appium provides useJSONSource capability to make parsing XML in source command faster than the default XML format. In general, getting page source via Appium (WDA) is slower than XCUIApplication().debugDescription since XDA confirmed and attache some additional properties like visibility. The debug description does not provide visibility in the description. But, sometimes, the debugDescription helps us…More