I have found an element and want to find all href in this element. I tried to get all the links but only the first one was obtained.
element = driver.find_element_by_xpath("//div[@class='msg']/div[@class='']")
href = element.find_element_by_css_selector('a').get_attribute('href') #only get first link
What is the correct method to do it?
Thank you very much.