openatx / facebook-wda

Facebook WebDriverAgent Python Client Library (not official)
MIT License
1.71k stars 266 forks source link

iOS 测试 wda 跑抖音 ios 的自动化会卡死,有人遇到这种情况吗 #120

Open knightdax opened 2 years ago

knightdax commented 2 years ago

iOS 测试 wda 跑抖音 ios 的自动化会卡死,有人遇到这种情况吗

jt1306 commented 2 years ago

大佬这个问题解决了吗?我也遇到了

knightdax commented 2 years ago

解决了,设置一下snapshotMaxDepth,降低一点就行了

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年3月9日(星期三) 中午11:27 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [openatx/facebook-wda] iOS 测试 wda 跑抖音 ios 的自动化会卡死,有人遇到这种情况吗 (Issue #120)

大佬这个问题解决了吗?我也遇到了

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

jt1306 commented 2 years ago

我调低之后好像没效果,点击抖音界面的时候,报错,大佬能帮忙看下吗?谢谢啦 2022-03-09 17:55:38.039818+0800 WebDriverAgentRunner-Runner[5006:1697137] Getting the most recent active application (out of 1 total items) t = 526.17s Get all elements bound by accessibility element for: Descendants matching type Window t = 526.24s Requesting snapshot of accessibility hierarchy for app with pid 5019 2022-03-09 17:55:39.142798+0800 WebDriverAgentRunner-Runner[5006:1702465] Error Domain=com.facebook.WebDriverAgent Code=1 "Cannot take a screenshot within 20000 ms timeout" UserInfo={NSLocalizedDescription=Cannot take a screenshot within 20000 ms timeout} 2022-03-09 17:55:40.217971+0800 WebDriverAgentRunner-Runner[5006:1702465] Error Domain=com.facebook.WebDriverAgent Code=1 "Cannot take a screenshot within 20000 ms timeout" UserInfo={NSLocalizedDescription=Cannot take a screenshot within 20000 ms timeout}

knightdax commented 2 years ago

降低到15以下试试

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年3月9日(星期三) 晚上6:49 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [openatx/facebook-wda] iOS 测试 wda 跑抖音 ios 的自动化会卡死,有人遇到这种情况吗 (Issue #120)

我调低之后好像没效果,点击抖音界面的时候,报错,大佬能帮忙看下吗?谢谢啦 2022-03-09 17:55:38.039818+0800 WebDriverAgentRunner-Runner[5006:1697137] Getting the most recent active application (out of 1 total items) t = 526.17s Get all elements bound by accessibility element for: Descendants matching type Window t = 526.24s Requesting snapshot of accessibility hierarchy for app with pid 5019 2022-03-09 17:55:39.142798+0800 WebDriverAgentRunner-Runner[5006:1702465] Error Domain=com.facebook.WebDriverAgent Code=1 "Cannot take a screenshot within 20000 ms timeout" UserInfo={NSLocalizedDescription=Cannot take a screenshot within 20000 ms timeout} 2022-03-09 17:55:40.217971+0800 WebDriverAgentRunner-Runner[5006:1702465] Error Domain=com.facebook.WebDriverAgent Code=1 "Cannot take a screenshot within 20000 ms timeout" UserInfo={NSLocalizedDescription=Cannot take a screenshot within 20000 ms timeout}

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

jt1306 commented 2 years ago

-1到15试了一遍,在抖音首页还是没法点击,(꒦_꒦)

summer1988 commented 2 years ago

改造一下wda 把一些子节点的点击遍历pass了就行

xx13181 commented 1 year ago

请问大佬可以说的详细点吗,怎么把wda改造一下