Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to find 'navigatorButtons' of react-native-navigation on android? #996

Closed
ducbka02 opened this issue Oct 25, 2018 · 2 comments
Closed

Comments

@ducbka02
Copy link

Description

On ios, this work fine. But on android, I was tried with "testID", "accessibilityLabel" or "contentDescription" and while run "await element(by.id("setting_profile_doneButton")).tap()".
Error: No views in hierarchy found matching: (with tag value: is "setting_profile_doneButton" and view has effective visibility=VISIBLE)
const buttons = {
leftButtons: undefined,
rightButtons: [{
testID: 'setting_profile_doneButton',
accessible: true,
accessibilityLabel: 'setting_profile_doneButton',
contentDescription: 'setting_profile_doneButton',
title: i18n.t('screens.profile.edit.doneButton'),
id: DONE_BUTTON,
disabled: !saveEnabled,
buttonColor: Colors.BitnationLinkOrangeColor,
}],
...androidNavigationButtons,
};

Detox, Node, Device, Xcode and macOS Versions

  • Detox: 9.0.4
  • React Native: 0.51.0
  • Device: Nexus_5X_API_27
@LeoNatan
Copy link
Contributor

This is not a support forum. Both the Detox and RNN projects have Stack Overflow rags. You should use those to ask questions.

@support
Copy link

support bot commented Oct 25, 2018

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.

@support support bot closed this as completed Oct 25, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants