Appium: identifying iOS elements using pytesseract instead of locators
Dear Experts,
Below is a snapshot of our application in test. iOS app in react native. The hierarchy is too deep.
We are already using snapshotmaxdepth – 60 as one of the capabilities.
Other capabilities include udid, bundleid, includeSafariInWebViews, connectHardwarekeyboard, simpleVisibleCheck and UseNativeCaching Strategy, etc…
The developement partner is suggesting to use pytesseract to extract the portfolioNumberValue, and had an argument about the application of pytesseract in this scenario.
This is just one element out many where we are having issue identifying using element-attributes (accessibilityid, classchain etc…). The value is no where to been seen in the selected element list.
I see a lot of disadvantage in using right from stability, incorrect application of tesseract, performance, reliability and pragmatic solution.
We have issue only with iOS and not Android
Question:
Is it general practice to user pytesseract in selenium automation to identify iOS elements? (our framework is in python/pytest)
What other options do we have here to enable automation?
Any other suggestion?
Went back several time to dev vendor to increase the depth/navigation, it worked for some but now they are saying using pytesseract