Skip to content

Description of iOS Tagent Interface Changes

yimelia edited this page Jun 13, 2024 · 4 revisions

iOS-Tagent interface modification instructions

A brief description:

iOS-Tagent is a customized version based on the https://github.com/appium/WebDriverAgent.git warehouse master branch commit number a191d51 (the latest commits will be pulled periodically for merging).

Branch description:

  • master is modified and tested based on appium wda. (Recommended Use)
  • modified_appium_wda is the latest version based on appium wda but not fully tested.
  • ios_tagent_old retains a previously available packaged version.

The main changes are as follows:

  1. Increase the interface of quick sliding and clicking (retain the original sliding and clicking interface without modification, and selectively call it according to the wda version in airtest), so that the ios mobile phone click and slide operation can be obtained more on the airtestIDE device window and the cloud real machine. Fast response speed, appium version has obvious delay (about 1s).

    • Tap interface for quick tap: /wda/deviceTap data = {'x': x, 'y': y, 'duration': duration}

      Parameter Description:

      • 'x': x, 'y': y click coordinates
      • 'duration' click duration
    • Quick swipe interface: /wda/deviceSwipe data = {'fromX':x1, 'fromY':y1, 'toX':x2, 'toY':y2, 'delay':delay}

      Parameter Description:

      • 'fromX':x1, 'fromY':y1 sliding start coordinates
      • 'toX':x2, 'toY':y2 slide end coordinates
      • 'delay' The actual time spent on sliding, calculated by the time spent on the actual sliding operation on the device window or cloud real machine
  2. Add a Version field to the /status interface. If this field exists, it means that iOS-Tagent is used.

  3. For the ios field returned in the /status interface, add a wifiIP field to the original simulatorVersion and IP fields. The reason is that the IP field may return an incorrect IP, so add a method to obtain the correct wifiIP and return the result.

    {"ios": {"simulatorVersion": xxxx, "ip": xxxx}} to {"ios": {"simulatorVersion": xxxx, "ip": xxxx, "wifiIP": xxxx}}

Clone this wiki locally