public object GetConfirmationPageValueForGroupMembers(ConfirmationPageField fieldName, int regIndex) { string groupMemberDIVLocator = string.Format( "//div[@id='ctl00_cphNoForm_membersRepeater_ctl{0}_panelRegDetail']//div[2]", ConversionTools.ConvertGroupMemberIndexToTwoDigitsString(regIndex)); string forLocator = groupMemberDIVLocator + "[@class='detailContentWrapper']//th[text()='{0}']/following-sibling::td[1]"; object valueFound = UIUtil.DefaultProvider.GetText(string.Format(forLocator, StringEnum.GetStringValue(fieldName)), LocateBy.XPath); return valueFound; }
public object GetConfirmationPageValueForPrimaryAttendee(ConfirmationPageField fieldName) { string primaryAttendeeDIVLocator = "//div[@id='ctl00_cphNoForm_primaryInfo_registraionRepeater_ctl00_personalInfo_barCodeWrapper']"; string forLocator = primaryAttendeeDIVLocator + "/following-sibling::div[@class='detailContentWrapper']//th[text()='{0}']/following-sibling::td[1]"; return UIUtil.DefaultProvider.GetText(string.Format(forLocator, StringEnum.GetStringValue(fieldName)), LocateBy.XPath); }