select the parent of an element selenium code example
Example: selenium get element parent
//label[contains(., 'labelName')]/parent::*//input[@value='elementToSelect']
//label[contains(., 'labelName')]/parent::*//input[@value='elementToSelect']