I am trying to retrieve the data from the webpage has the html in below
As far as I am aware you can get the href by searching through the child elements
div = self.driver.find_element_by_class_name('someclass') div.find_element_by_css_selector('a').get_attribute('href')