wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.23k stars 1.92k forks source link

Click ios native pop-up click #1703

Closed razlomania closed 5 years ago

razlomania commented 5 years ago

Hi. This is the confirmation alert pop-up I got after login into the application via google sso.

And i've got the issue with clicking on 'Continue' button in this pop-up. I saw a few discussions already about this kind of issues, but nothing helped me. This what i have tried a few answers from stackoverflow, but it didn't work. Also, I've opened an application in appium app to see the exact element name there, tried to use it in test, but didn't get any success.

This is the way how I interact with the element

it('should have welcome screen', async () => {
    await expect(element(by.id('hostname-input'))).toBeVisible();
    await element(by.id('hostname-input')).typeText('personio');
    await element(by.id('hostname-submit-button')).tap();
    await element(by.id('googleAuthButton')).tap();
    //  XCUIElementTypeButton[@name="Continue"]
    await waitFor(element(by.type('XCUIElementTypeButton')))
      .toExist()
      .withTimeout(10000);
    await element(
      by.name('Continue').and(by.type('XCUIElementTypeButton')),
    ).tap();
  });

and this is the error:

    Element matcher: ((!(kindOfClass('RCTScrollView')) && ((kindOfClass('(null)') && isNotNil) && !(kindOfClass('UIAccessibilityTextFieldElement')))) || (((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && parentThatMatches(kindOfClass('RCTScrollView'))) && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && parentThatMatches(((kindOfClass('(null)') && isNotNil) && !(kindOfClass('UIAccessibilityTextFieldElement')))))))

Any ideas on how that could be resolved? Thanks in advance.

support[bot] commented 5 years ago

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

Feel free to post your Stack Overflow question here for more visility. We'll take a look at it.

For issues with Expo apps, it is most likely not an issue with Detox itself, but with the Expo runtime or with incorrect Detox setup. For support on how to use Detox with Expo, you should contact the Expo team or the Expo community.

For more information on bots in this reporsitory, read this discussion.