Using Python's Selenium I got the first div element because I needed the onclick element.
driver.find_element(By.CLASS_NAME, 'card-user-frontpage')
# I got the onclick element
This part is working for me. But now I also want to have the img
element starting from the code above. I don't want to use XPATH.
<div class="action-link card card-user-frontpage card-user-36405612 hover" onclick="window.location.href='/user/36405612/3';">
<div class="card-block">
<div class="userimage action-link pull-left placeholder" onclick="window.location.href='/user/36405612/3';">
<img onclick="" src="blabla../user/170x170/male.jpg" class=" userimage-170x170 user-image" data-show-count="0" data-toggle="tooltip" title="" data-original-title="">
Like accessing the child elements in Selenium. Is that possible?