我运行了以下命令,它说执行块失败,因为下面的空闲资源很忙。
EarlGrey.select(elementWithMatcher: grey_accessibilityLabel("First Label")).atIndex(0).perform(grey_tap())
EarlGrey.select(elementWithMatcher: grey_accessibilityLabel("Second Label")).perform(grey_tap())
第二个标签位于顶部的导航栏上。单击该按钮屏幕幻灯片。
错误跟踪:
Exception Details: Error Trace: [
{
"Description" : "Failed to execute block because idling resources below are busy.",
"Description Glossary" : {
"UIWebView Pre-Load Tracker" : "UIWebView Pre-Load Tracker"
},
"Domain" : "com.google.earlgrey.GREYUIThreadExecutorErrorDomain",
"Code" : "0",
"File Name" : "GREYUIThreadExecutor.m",
"Function Name" : "-[GREYUIThreadExecutor executeSyncWithTimeout:block:error:]",
"Line" : "235",
"TestCase Class" : "EarlgreyAutomation.FeedAutomation",
"TestCase Method" : "testUserShouldWatchFlightAndSeeItsList"
},
{
"Description" : "Failed to execute assertion within 30 seconds.",
"Domain" : "com.google.earlgrey.ElementInteractionErrorDomain",
"Code" : "4",
"File Name" : "GREYElementInteraction.m",
"Function Name" : "-[GREYElementInteraction assert:error:]",
"Line" : "418",
"TestCase Class" : "EarlgreyAutomation.FeedAutomation",
"TestCase Method" : "testUserShouldWatchFlightAndSeeItsList"
}
]
我试图通过将 kGREYConfigKeyDelayedPerformMaxTrackableDuration 的值更改为threshold - 1但没有进展来解决这个问题。