I'm trying to click an element on a web page using selenium and python
driver.find_element_by_class_name("market-selection.ng-scope").click()
But I get the error that the element isn't clickable
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
This is the element html (it's not in a frame btw); I'm guessing that the interactable part is the second div but I also tried the other two just in case...
<div class="market-selection-container 18" ng-repeat="market in wrapperCategoryGroup.currentMacroCategoria.mkl track by $index">
<!-- ngIf: wrapperCategoryGroup.marketTypes[market].nm -->
<div class="market-selection ng-scope" ng-if="wrapperCategoryGroup.marketTypes[market].nm" ng-class="{'active':wrapperCategoryGroup.currentMarketType == market}" ng-click="wrapperCategoryGroup.getMarketType(market)" style="">
<span class="ng-binding">
doppia chance
</span>
</div>
<!-- end ngIf: wrapperCategoryGroup.marketTypes[market].nm -->
</div>
Any hint?