地图类app自动化测试问题

问题

学习了appium自动化的教程,对于本地原生应用测试可以做。现在如果做地图类的应用,发现用元素定位,根本就不能定位到元素。

想请教下,如果是这类应用如果进行自动化测试?

环境

Windows11,
木木模拟器 高德地图车机版

pagesource

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<hierarchy index="0" class="hierarchy" rotation="0" width="1600" height="900">
  <android.widget.FrameLayout index="0" package="com.autonavi.amapauto" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1600,900]" displayed="true">
    <android.widget.LinearLayout index="0" package="com.autonavi.amapauto" class="android.widget.LinearLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1600,900]" displayed="true">
      <android.widget.FrameLayout index="0" package="com.autonavi.amapauto" class="android.widget.FrameLayout" text="" resource-id="android:id/content" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1600,900]" displayed="true">
        <android.widget.FrameLayout index="0" package="com.autonavi.amapauto" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1600,900]" displayed="true">
          <android.view.View index="0" package="com.autonavi.amapauto" class="android.view.View" text="" resource-id="com.autonavi.amapauto:id/ui_surface" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1600,900]" displayed="true" />
          <android.view.View index="1" package="com.autonavi.amapauto" class="android.view.View" text="" resource-id="com.autonavi.amapauto:id/map_surface" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1600,900]" displayed="true" />
        </android.widget.FrameLayout>
      </android.widget.FrameLayout>
    </android.widget.LinearLayout>
  </android.widget.FrameLayout>
</hierarchy>

你是想点击某个城市做定位吗,还是页面缩放

点击城市做定位。

关闭