jeudi 18 juin 2020

Appium xpath for React-Navigation header issue on IOS

I am unable to detect the xpath for React-Navigation header elements on IOS after adding backgroundimage. It was working fine before but after adding the backgroudimage for the header, it stopped working on IOS, for Android it's working fine, the hamburger menu or any other custom icon for headerRight and headerLeft is taking the background image name as xpath on Appium and thus is not clickable at all. How can I make it work like Android?

Code:

      <View style={testStyles}>
        <ImageBackground source={headerImage}>
          <SafeAreaView style= >
<SectionList></SectionList>
          </SafeAreaView>
        </ImageBackground>
      </View>

Aucun commentaire:

Enregistrer un commentaire