I'm trying to check the checkbox on a page: https://www.pkobp.pl/poi/?clients=1,2,3.
<li class="poi-filter-top__el"> <div class="poi-icon poi-icon--facility"></div> <input type="checkbox" id="poi-legend-facility" class="js-poi-legend" name="type" value="facility"> <label for="poi-legend-facility" class="poi-legend input-checkbox poi-filter-top__label">Oddział</label> <a href="#facility" class="js-poi-action poi-filter-top__link" data-action="facility">Wybierz rodzaj</a> </li>
I try to do this with:
checkboxes = driver.find_elements_by_id("poi-legend-facility") for checkbox in checkboxes: if not checkbox.is_selected(): checkbox.click()
But it doesn't work. Can you help me?