How to obtain the tagname of the parent element in Selenium webdriver?