I have one xpath based on class and I'm trying to find the parent element of it from the current.
Path 1
/html/body/div[2]/div[2]/div/div[2]/div/div[2]/div[2]/div[1]/div/div/p[8]/b[2]/a
Path 2
/html/body/div[2]/div[2]/div/div[2]/div/div[2]/div[2]/div[1]/div/div/p[8]/b[2]
Path 1 can also represent using class name i.e. "xyz" driver.find_element_by_xpath('//a[@class="xyz"]')
How can I traverse to parent node from the current node ?