AirtestProject / AirtestProject/iOS-Tagent

唤起 APP 失效,怀疑弹窗 button click 失准(日志加粗部分)

Offen
#124 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Objective-C
Sterne
722
Forks
194
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**测试环境:**
测试机:iphone6 , iOS 12.3.1
airtest :1.2.2
iOS-Tagent commit id :d3adb60
Xcode:10.3
**测试场景及步骤**
前置条件:
在 iOS 手机自带的 Files 应用中打开一个 html 文件,html 文件中是一个APP scheme 。
预期:
点击链接可唤起 APP
实际结果:
在 Airtest 中操作,没有唤起 APP ;直接在手机上操作,可以唤起 APP 没有问题
截图如下:
![image](https://user-images.githubusercontent.com/26532614/69301785-6637b580-0c52-11ea-9ef2-d5017265f3cd.png)
**日志如下**
'com.apple.DocumentsApp'
t = 5234.06s Snapshot accessibility hierarchy for app with pid 395
t = 5234.24s Snapshot accessibility hierarchy for app with pid 395
2019-11-21 11:31:48.579866+0800 WebDriverAgentRunner-Runner[242:4072] tapPoint:236.731844,390.712291
2019-11-21 11:31:48.580053+0800 WebDriverAgentRunner-Runner[242:4072] cost time = 0.209093 ms
t = 5234.53s Checking existence of `Window`
t = 5234.54s Snapshot accessibility hierarchy for app with pid 395
t = 5234.61s Find the Window
t = 5234.62s Snapshot accessibility hierarchy for app with pid 395
t = 5234.72s Find the Window at {{0.0, 0.0}, {375.0, 667.0}}
t = 5234.72s Snapshot accessibility hierarchy for app with pid 395
2019-11-21 11:31:48.872434+0800 WebDriverAgentRunner-Runner[242:4072] cost time1 = 292.577028 ms
t = 5234.82s Tap Window at {{0.0, 0.0}, {375.0, 667.0}}[0.00, 0.00] -> (236.7, 390.7)
t = 5234.82s Wait for com.apple.DocumentsApp to idle
t = 5234.85s Find the Window at {{0.0, 0.0}, {375.0, 667.0}}
t = 5234.85s Snapshot accessibility hierarchy for app with pid 395
t = 5234.94s Check for interrupting elements affecting Window
t = 5234.96s Snapshot accessibility hierarchy for app with pid 395
t = 5235.04s Find: Descendants matching type Alert
t = 5235.09s Handle interrupting element
t = 5235.09s Find the "Leave Files and open this link?" Alert
t = 5235.09s Snapshot accessibility hierarchy for app with pid 395
t = 5235.17s Find: Descendants matching type Alert
t = 5235.17s Find: Identity Binding
t = 5235.18s Checking existence of `Button`
t = 5235.18s Snapshot accessibility hierarchy for app with pid 395
t = 5235.26s Find: Descendants matching type Alert
t = 5235.27s Find: Identity Binding
t = 5235.27s Find: Descendants matching type Button
t = 5235.27s Find: Elements matching predicate 'userTestingAttributes CONTAINS "cancel-button"'
t = 5235.28s Checking existence of `Button`
t = 5235.28s Snapshot accessibility hierarchy for app with pid 395
t = 5235.37s Find: Descendants matching type Alert
t = 5235.37s Find: Identity Binding
t = 5235.37s Find: Descendants matching type Button
t = 5235.38s Find: Elements matching predicate 'userTestingAttributes CONTAINS "cancel-button"'
t = 5235.39s Default interruption handler attempting to dismiss alert by tapping Button.
t = 5235.39s Tap Button
t = 5235.39s Wait for com.apple.DocumentsApp to idle
t = 5235.41s Find the Button
t = 5235.42s Snapshot accessibility hierarchy for app with pid 395
t = 5235.50s Find: Descendants matching type Alert
t = 5235.51s Find: Identity Binding
t = 5235.51s Find: Descendants matching type Button
**t = 5235.52s Find: Elements matching predicate 'userTestingAttributes CONTAINS "cancel-button"'**
**t = 5235.55s Check for interrupting elements affecting "Cancel" Button**
t = 5235.57s Snapshot accessibility hierarchy for app with pid 395
t = 5235.64s Find: Descendants matching type Alert
t = 5235.67s Synthesize event
t = 5235.77s Wait for com.apple.DocumentsApp to idle
t = 5236.24s Waiting 10.0s for Alert to not exist
t = 5237.24s Checking `Expect predicate `exists == 0` for object Alert`
t = 5237.25s Checking existence of `Alert`
t = 5237.26s Snapshot accessibility hierarchy for app with pid 395
t = 5237.34s Find: Descendants matching type Alert
t = 5237.86s Snapshot accessibility hierarchy for app with pid 395
t = 5237.97s Check for interrupting elements affecting Window
t = 5237.99s Snapshot accessibility hierarchy for app with pid 395
t = 5238.05s Find: Descendants matching type Alert
t = 5238.06s Synthesize event
t = 5238.06s Find the Window
t = 5238.06s Snapshot accessibility hierarchy for app with pid 395
t = 5238.22s Wait for com.apple.DocumentsApp to idle
2019-11-21 11:31:52.326668+0800 WebDriverAgentRunner-Runner[242:4072] cost time2 = 3746.783018 ms
t = 5238.36s Find the Application 'com.apple.DocumentsApp'
t = 5238.36s Snapshot accessibility hierarchy for app with pid 395
t = 5238.51s Snapshot accessibility hierarchy for app with pid 395
t = 5240.77s Find the Application 'com.apple.DocumentsApp'
t = 5240.77s Snapshot accessibility hierarchy for app with pid 395
t = 5240.97s Snapshot accessibility hierarchy for app with pid 395
t = 5243.24s Find the Application 'com.apple.DocumentsApp'
t = 5243.24s Snapshot accessibility hierarchy for app with pid 395

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.