react native - Pressable error on android, function timed out - Stack Overflow

admin2025-04-18  3

I get the error when I try and

I can find the pressable component and log it in the console:

BaseWebElementPromise {
  elementPromise: Element {
    value: '34741788-6ee2-4a95-83bf-fd3476adafbf',
    browser: EventEmitter {
      _events: [Object: null prototype] {},
      _eventsCount: 0,
      _maxListeners: undefined,
      httpAgent: [Agent],
      configUrl: [Url],
      sauceTestPageRoot: '',
      sauceRestRoot: '',
      noAuthConfigUrl: [Url],
      defaultCapabilities: [Object],
      _httpConfig: [Object],
      sampleElement: [Element],
      sessionID: '50898740a61f2451062f41602293ae0a5084510a',
      w3c: true,
      [Symbol(kCapture)]: false
    }
  },

But when I try and access the click:

   await continueButton.click()

I get the error:

  status: 'FAILED',
  message: 'Error: function timed out, ensure the promise resolves within 180000 milliseconds\n' +
    '    at Timeout.<anonymous> (/Users/HarrisM/apps/myrac-mobile-tests/node_modules/@cucumber/cucumber/src/time.ts:52:14)\n' +
    '    at listOnTimeout (node:internal/timers:569:17)\n' +
    '    at processTimers (node:internal/timers:512:7)',

It works fine on iOS, any ideas?

转载请注明原文地址:http://anycun.com/QandA/1744912849a89387.html