<div class="innerImageOuterWrapper">
<div class="innerImageWrapper editlink" id="imageGridWrapper_15961315" ximgid="23232323" onclick="displayEditImageBox('IMSIMAGE:ASDASD', 233232, 'new')" style="background: transparent url("https://xsad.com/xsd.jpg;) center center / cover no-repeat;">
<img src="https://xsad.com/xsd.jpg" class="thumbnail scaleimg" id="imageGridimage_15961315" style="display: none;" wfd-invisible="true">
</div>
<div class="innerImageWrapper editlink" id="imageGridWrapper_15961314" ximgid="15961314" onclick="displayEditImageBox('IMSIMAGE:ASDASD23', 15961314, 'new')" style="background: transparent url("https://xsad.com/xsd.jpg") center center / cover no-repeat;">
<img src="https://xsad.com/xsdsd.jpg" class="thumbnail scaleimg" id="imageGridimage_15961314" style="display: none;" wfd-invisible="true">
</div>
</div>
I want to click on elements whose class is "innerImageWrapper editlink".
I use this code
driver.find_elements(by=By.CLASS_NAME, value="innerImageWrapper editlink").click()
but it's not working.
driver.find_element(by=By.XPATH,
value='//*[@id="imageGridWrapper_15961314"').click()
it's working. but I dont want use xpath. I want use class name