Get Parent Element of the Element in Appium and Selenium

Hi,   how to get Parent element of captured element of Android native app using appium and selenium. In android many of the elements are same of default android elements. if i have element how to get the parent element??

Train Asked on October 30, 2015 in Appium.
Add Comment
  • 1 Answer(s)
    Best answer

    Hello Surya,

    Use XPath Axes.Use parent axes name
    For example >> .//name[text() = ‘Click’]/parent::*


    Train Answered on November 12, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.