EarlGrey: Не удалось выполнить блокировку, поскольку ресурсы на холостом ходу ниже заняты

Я выполнил следующие команды, и он говорит, что не удалось выполнить блок, потому что ресурсы холостого хода ниже заняты.

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 до порогового значения - 1, но без прогресса.

0 ответов

Другие вопросы по тегам