Appium: [Android] How to get the parent of an element?

Created on 19 Mar 2015  路  2Comments  路  Source: appium/appium

I can locate an element by its text and then I want to get its parent. Is there anyway to locate its parent?
i.e.

WebElement parentElement = childElement.getParent();

All 2 comments

Not in an easy way. But you can Google around for ways. This kind of query is also better suited for the discussion list.

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.

Was this page helpful?
0 / 5 - 0 ratings