You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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!
The problem
There’s a
header
in the app, that containsbutton back
. Header has propheaderTransparent: true
, which appliesposition: absolute
to header. WhenheaderTransparent: true
, Appium Inspector can’t findbutton back
insideheader
. WhenheaderTransparent: false
, Appium Inspector is able to findheader
andbutton 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
The text was updated successfully, but these errors were encountered: