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

Appium Inspector can’t find element with headerTransparent: true #5521

Closed
TesterAllmax opened this issue Jan 25, 2019 · 2 comments
Closed

Comments

@TesterAllmax
Copy link

The problem

There’s a header in the app, that contains button back. Header has prop headerTransparent: true, which applies position: absolute to header. When headerTransparent: true, Appium Inspector can’t find button back inside header. When headerTransparent: false, Appium Inspector is able to find header and button back in it.

Code To Reproduce Issue

Sample component code:
export const CloseButton = ({ onPress, testID }: { onPress: () => void, testID: string }) => ( <TouchableOpacity style={styles.wrapper} onPress={onPress} testID={testID}> <Image source={images.closeButton} /> </TouchableOpacity> );

Sample screen code:
class UnconnectedLoginScreen extends PureComponent<Props, State> { static navigationOptions: (nav: Props) => StackNavigationOptions = ({ navigation }) => ({ headerTransparent: true, headerStyle: { borderBottomWidth: 0 }, headerRight: <CloseButton onPress={() => navigation.goBack()} testID="button Close" />, headerLeft: null, });

Your Environment

| software | version
react-navigation: 3.0.5
react-native: 0.57.8
npm

  • Appium version (or git revision) that exhibits the issue: 1.10.0
  • Desktop OS/version used to run Appium: macOS High Sierra v: 10.13.6
  • Node.js version (unless using Appium.app|exe): 10.15.0
  • Mobile platform/version under test: iOS 12.1.2
  • Real device or emulator/simulator: real device
@brentvatne
Copy link
Member

we don't explicitly support appium. if you find a solution please let us know in this issue but i don't really know much about appium and can't help, sorry!

@TesterAllmax
Copy link
Author

@brentvatne main problem is that when headerTransparent: true accessibleId/ TestID does not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants