RoboScript 无法在 Firebase Testlab 中单击“启用位置确定”按钮

Kri*_*nya 6 android firebase android-gps

我正在尝试在 Firebase TestLab 上使用 RoboScript 测试基于 Google 地图的 Android 应用程序。默认情况下,TestLab 设备上禁用位置。要启用它们,我们需要模拟单击系统提示上的“确定”按钮。但这种点击永远不会发生。您可以看到下面的屏幕截图。“确定”按钮永远不会被按下,流程将在此停止。

截屏

我检查了 RoboScript json 文件。Android studio 从未记录过“确定”按钮的点击。我尝试创建另一个元素,如下所示。但无法确定系统对话框的resourceId 应该是什么。

    {
        "eventType": "VIEW_CLICKED",
        "timestamp": 1512127956674,
        "replacementText": "",
        "actionCode": -1,
        "delayTime": 0,
        "canScrollTo": false,
        "elementDescriptors": [
          {
            "className": "android.widget.LinearLayout",
            "recyclerViewChildPosition": -1,
            "adapterViewChildPosition": -1,
            "groupViewChildPosition": 0,
            "resourceId": "com.entransys.parkeze:id/confirm_linear",
            "contentDescription": "",
            "text": ""
          },
          {
            "className": "android.support.v7.widget.ContentFrameLayout",
            "recyclerViewChildPosition": -1,
            "adapterViewChildPosition": -1,
            "groupViewChildPosition": 1,
            "resourceId": "android:id/content",
            "contentDescription": "",
            "text": ""
          },
          {
            "className": "android.support.v7.widget.FitWindowsLinearLayout",
            "recyclerViewChildPosition": -1,
            "adapterViewChildPosition": -1,
            "groupViewChildPosition": 0,
            "resourceId": "com.entransys.parkeze:id/action_bar_root",
            "contentDescription": "",
            "text": ""
          }
        ]
      }
Run Code Online (Sandbox Code Playgroud)

所以我的问题是 a)是否有一个选项可以在 Firebase TestLab 中的设备上开始测试之前启用位置?

b) 是否有一个选项可以使用 Robo 脚本在系统级对话框上生成点击

编辑1:添加屏幕截图

编辑2:是的,如果按下“确定”按钮或按下“确定”按钮[位置图标出现在应用程序栏中]和地图不可见之间存在混淆。没有错误,流程在此停止。

sha*_*aMK 0

我正在为我的应用程序录制机器人脚本。它从未记录对运行时权限执行的操作。