selenium - How to extract xpath from element name using Appium on iOS -
i'd find way extract full element's xpath using name. instance got this:
name: moses type: uiastatictext xpath: "//uiaapplication[1]/uiawindow[1]/uiascrollview[1]/uiastatictext[3]" now i'd find full xpath using "moses" name tag.
seleniumhelper.getelement("//uiastatictext[(@name='moses')]"); but doesn't seem work. cheers, pavel
try this:
mobileelement obj1 = (mobileelement)driver.findelementbyclassname("uiastatictext"); or:
mobileelement obj1 = (mobileelement)driver.findelementbyclassname("uiawindow"); once object, then:
obj1.getattribute("name"); if still see issue, please attach screen shot xml.
Comments
Post a Comment