OK, here is the xpath, that should speed the search time:
/mobileapp[@title='au.com.planetinnovation.gidget']/form//container[@platformclass='MMDrawerCenterContainerView']/container[@containertype='LayoutContainer']//container[@containertype='ViewControllerWrapper']/container[@platformclass='UIView']//container[@platformclass='UIView']//dom[@caption='Gidget']//div[#'app']/div/div[@class='mdl-layout__container']/div[@class~'mdl-layout mdl-js-layout']/div[@class='mdl-layout__content']/div[@class~'mdl-card pi-witness-session-recipient-card']/div[@class~'mdl-card__title']
You may try to reduce the xpath a bit by removing some of the elements, but you need to test the impact of removed elements on search speed.
If you want to instruct Ranorex to contstruct xpath (during recording) based of the class, platformclass and containertype attributes, you need to change the xpath weight to give these attributes a priority over other attributes. Typically, class names have very low priority/weight value, because they are not unique enough. But because there are no other usable attributes in your GUI, it's better to use these attributes over element indexes (like div).
You can find a detailed description how to set path weight in this article:
http://www.ranorex.com/blog/automated-t ... namic-ids/
As for the person validation, I'm not quite sure I understand your actual validation process/requirement? And sadly, the snapshot you posted does not contain other persons than just 'Lesley Brown' so it's hard for me to suggest a code to validate each person.
Basically, I would suggest to create a list of elements containing the individual names and validate this list against the reference list. To create a list of elements with names, you can use something like this:
http://www.ranorex.com/support/user-gui ... html#c3574
However, you may need to make the repo xpath more generic, to return all elements with names. But as mentioned, it's hard for me to create such generic xpath from the actual snapshot, because there is just one person displayed. Please post the snapshot showing the state of GUI as displayed in your initial screenshot.