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 1.7.2 unable to find element from element #10107
Comments
For reference here is the page source snippet
|
Duplicate of #10101 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The problem
Calling findElementFromElement unable to find an element (confirmed element does exist using driver.getPageSource() and also running same code on Appium 1.7.1 where the code works).
Environment
Details
Using the Java bindings, we are using
final WebElement el = new WebDriverWait(driver, Constants.ELEMENT_WAIT, Constants.POLLING_RATE).until(ExpectedConditions.presenceOfElementLocated(locator));
to get parent, then callingel.findElement(locator);
to get child. This throws a NoSuchElementException.What is strange is calling this as a single chain does work:
driver.findElement(locatorParent).findElement(locatorChild).click();
The only difference I can see is the WebDriverWait's ExpectedConditions is using findElements instead of findElement for finding the parent element. They both just return a single WebElement so i don't know why that would matter though. It returns the element out of the array as you will see below.
Link to Appium logs
Using Appium 1.7.1 it works: https://gist.github.com/jamesvanhorn/6966201fe9c77d49af0faf79203c5af7
Using Appium 1.7.2 it fails: https://gist.github.com/jamesvanhorn/136bed77b942d88c6c327e0e3b709d13
App under test was identical, so this seems like a WDA page source issue? I have the new capability useJSONSource=false for reference. I have also seen other issues with Appium 1.7.2 not finding view elements that I have assigned an accessibility ID to in XCode. It almost seems like there is some sort of source compression (similar to how Android can get compress or uncompressed source) occurring on real devices (simulators this doesn't happen). Setting useJSONSource=true does not help either, as I get this error facebookarchive/WebDriverAgent#797
Code To Reproduce Issue [ Good To Have ]
Doesn't happen with all findElementFromElement() calls, so difficult to give single code snippet to reproduce
The text was updated successfully, but these errors were encountered: