I clicked the checkbox using Selenium
ElementNotInteractableException Message: element not interactable
This is an experience, but I feel that it often happens when the tick box and label are a set and fashionable.
Fashionable check boxes and labels ↓ https://quartet-communications.com/info/topics/7165
HTML source for the checkbox you want to click
<p class="op-input">
<input type="checkbox" name="rst" id="sunday" value="1" class="oc-checkbox" checked="checked">
<label for="sunday">open on Sundays</label>
</p>
Premise Windwos10 Python3.8 It is assumed that the Selenium Chrome Driver is already set in the variable driver.
python
sunday=driver.find_element_by_id("sunday")
driver.execute_script("arguments[0].click();",sunday)
Premise Selenium Basic installed Selenium Chrome Driver is set in the variable driver
vba
Set sunday = driver.FindElementById("sunday")
driver.ExecuteScript "arguments[0].click();", sunday
I found elaborate sites easy, but often I can't.
Recommended Posts