gpt4 book ai didi

android - 葫芦安卓刷卡不工作

转载 作者:行者123 更新时间:2023-11-29 15:43:52 27 4
gpt4 key购买 nike

我正在运行 android calabash 测试。我的屏幕上有两个选项卡,当我尝试 perform_action('swipe', 'right') 屏幕的一小部分滑动时,我会在这两个选项卡之间切换,它会返回到之前的状态无需切换到新选项卡。我什至尝试过 perform_action('drag', 86, 306, 143, 143, 10) 但没有得到任何回应。当我打印查询时得到下面给出的响应。在这里,我想在聊天联系人 之间切换。

{  
"id" =>nil,
"enabled" =>true,
"contentDescription" =>nil,
"text" =>"Chats",
"visible" =>true,
"tag" =>nil,
"description" =>"android.support.v7.widget.AppCompatTextView@42569e98",
"class" =>"android.support.v7.widget.AppCompatTextView",
"rect" => {
"center_y" =>157,
"center_x" =>119,
"height" =>29,
"y" =>143,
"width" =>67,
"x" =>86
}
},
{
"id" =>nil,
"enabled" =>true,
"contentDescription" =>nil,
"visible" =>true,
"tag" =>nil,
"description" =>"android.support.design.widget.TabLayout$TabView@4256b740",
"class" =>"android.support.design.widget.TabLayout$TabView",
"rect" => {
"center_y" =>158,
"center_x" =>360,
"height" =>72,
"y" =>122,
"width" =>240,
"x" =>240
}
},
{
"id" =>nil,
"enabled" =>true,
"contentDescription" =>nil,
"text" =>"Contacts",
"visible" =>true,
"tag" =>nil,
"description" =>"android.support.v7.widget.AppCompatTextView@4256c690",
"class" =>"android.support.v7.widget.AppCompatTextView",
"rect" => {
"center_y" =>157,
"center_x" =>359,
"height" =>29,
"y" =>143,
"width" =>107,
"x" =>306
}

最佳答案

那些是非常古老且已弃用的操作。我建议只使用 pan_left 或类似的。您可以为这些方法指定百分比坐标

关于android - 葫芦安卓刷卡不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35985475/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com