I have a test where I am loading an Android app, which loads HTML pages (a hybrid app), then clicks some buttons and types some stuff.
The issue is it works maybe 75% of the time.
Here is the code that I am using:
This is the element I am trying to locate:
<input type=“email” maxlength=“128” id=“email_login” placeholder=“Email” name=“email” autocorrect=“off” autocapitalize=“off”>
What I have tried:
Everything in this: https://lintaonz.wordpress.com/2011/11/24/why-seleniumwebdriver-sometimes-fail-to-find-element/
Pretty much every stackoverflow post of the same question (Just call the method again, wait longer, etc).
Getting the element by different attributes. ID, XPath, name, etc.
Using ExpectedConditions.presenceOfElementLocatedBy() as well as visibilityOfElementLocatedBy().
Doing it in native context as well
Chromedriver version: 2.43.600229
Chrome version on phone: 69
Appium version: Persists across 1.9.1 and 1.15
If anyone could help me, that would be greatly appreciated.