Jump to content

fabio73

Members
  • Posts

    1
  • Joined

  • Last visited

fabio73's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Some quick context to what I'm doing. I'm utilizing a test automation tool called SOASTA. What this software allows me to do is record performed actions on a mobile device and then play back those same actions at anytime. When recording actions, SOASTA will assign the action performed a random locator value. This value can be modified to equal a specific XPATH value. On the mobile application I'm recording action on, I have 3 files stored called TEST SIGN.doc, TEST SIGN.docx, and TEST SIGN.pdf, separated by the node <RelativeLayout> in the XML code shown below. Each of these files have a button on them that when tapped, opens a window to perform certain actions. In the XML hierachy, these three buttons are all assigned the same value of, <DontPressWithParentImageView touchTestId="img_item_action"/>. My question is, is there an XPATH that will allow me to distinguish between the 3 buttons even though the buttons have the same values? THANK YOU IN ADVANCE!! <ListView touchTestId="16908298"> <RelativeLayout> <ImageView touchTestId="img_icon"/> <TextView text="TEST SIGN.doc" touchTestId="txt_title"/> <TextView text="21.5 KB, modified Jan 20, 2014 03:36 PM" touchTestId="txt_info"/> <CheckBox text="" touchTestId="checkbox"/> <View touchTestId="divider"/> <DontPressWithParentImageView touchTestId="img_item_action"/> </RelativeLayout> <RelativeLayout> <ImageView touchTestId="img_icon"/> <TextView text="TEST SIGN.docx" touchTestId="txt_title"/> <TextView text="12.6 KB, modified Jan 20, 2014 03:36 PM" touchTestId="txt_info"/> <CheckBox text="" touchTestId="checkbox"/> <View touchTestId="divider"/> <DontPressWithParentImageView touchTestId="img_item_action"/> </RelativeLayout> <RelativeLayout> <ImageView touchTestId="img_icon"/> <TextView text="TEST SIGN.pdf" touchTestId="txt_title"/> <TextView text="12.7 KB, modified Jan 20, 2014 03:36 PM" touchTestId="txt_info"/> <CheckBox text="" touchTestId="checkbox"/> <View touchTestId="divider"/> <DontPressWithParentImageView touchTestId="img_item_action"/> </RelativeLayout></ListView>
×
×
  • Create New...