Flutter development changes in iOS 14. So, Flutter app can run as debug mode only when the app is built by flutter command or Xcode directly. It does not work when someone launches the app via icon or somehow. https://flutter.dev/docs/development/ios-14 It prevents testing the app under test over Appium since https://github.com/truongsinh/appium-flutter-driver connects to Dart VM…More
Tag Archives: appium
[Appium] Build speed on M1 macOS
Appium/WDA v2.32.0 got rid of carthage. Then, M1 mac also was able to build it without any issues. So, I compared build speed between Intel and M1 machines. Command xcodebuild build-for-testing -scheme WebDriverAgentRunner -target WebDriverAgentRunner -destination ‘generic/platform=iOS’ CODE_SIGNING_ALLOWED=NO -derivedDataPath tmpDir Result M1 macOS MacBook Air (M1, 2020)OS: 11.0.1(20B29Processor: Apple M1Memory: 8 GB Result: 2.48s user…More
[Appium]M1 macOS x Appium
I got M1 macOS, so confirmed if Appium worked on the environment. With Xcode 12.2 environment, only simulator did not work because of build architecture issue on M1 macOS. Real devices connected to the M1 machine had no issue. These were expected result for us. Probably we can fix the issue tweaking build architecture on…More
[iOS][Appium] Result Bundle with WebDriverAgent
xcodebuild has arguments related to Result Bundle, -resultBundlePath and -resultBundleVersion. By this change, Appium also can specify them in WebDriverAgent’s xcodebuild arguments. (It will be in 1.19.1) xcodebuild creates test results. In general, they are created in Logs like the below directory. Appium’s WebDriverAgent also has it. -resultBundlePath and -resultBundleVersion allow us to customize the…More
[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
[Appium] disableSuppressAccessibilityService
Appium 1.18.0 finally got disableSuppressAccessibilityService capability. It allows users to run tests against the app under test that requires accessibility service such as TalkBack. In general, the service works only one, but UiAutomation.FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES flag relaxes the limitation. The disableSuppressAccessibilityService capability sets the flag. Then, Appium can run tests with accessibility services. Yey. (Of course, this…More
[Appium] iOS x Audio Capture
Audio capturing feature for iOS is coming in Appium 1.18.0 https://appium.io/docs/en/writing-running-appium/ios/audio-capture/ (Currently it is available as appium@beta). It is not handy to record audio especially on real devices, but when we bypass audio input from iPhone to the host macOS machine via MIDI, it can. Yey. I personally think it is easy to use cloud…More
[Appium] Take a look at socket communication for WebKit
Read https://github.com/appium/appium-remote-debugger/blob/master/development-notes.md Once you could connect to the socket successfully, like below dump appears. com.apple.testmanagerd is testmanagerd. com.apple.CoreSimulator.SimDevice is simulators. Then, you can observe their exact communication protocol.More
[Python] attach to an existing session
This is my note to attach to an existing Selenium/Appium session in Python. It is useful to debug/develop Selenium/Appium stuff.More
[Appium] Send CDP commands to chrome over Appium
I’ve added a route to send CDP command to Chromedriver. CDP stands for Chrome Devtools Protocol. It provides commands to handle a browser via the protocol. Some commands can be alternatives to WebDriver spec, but they have their own more useful commands. It is available over WebSocket. You can find CDP clients in the internet,…More