I can't click the Selenium checkbox Python VBA

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

Conclusion

I was able to click using Javascript.

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>

Click the checkbox in Selenium Javascript For Python

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)

Click the checkbox in Selenium Javascript for VBA

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

I can't click the Selenium checkbox Python VBA
I can't get the element in Selenium!
I downloaded the python source
I can't install python3 with pyenv-vertualenv
I can't remember Python regular expressions
I liked the tweet with python. ..
I can't install scikit-learn in Python
I wrote the queue in Python
I wrote the stack in Python
Get a capture of the entire web page in Selenium Python VBA
I didn't know the basics of Python
(Python Selenium) I want to check the settings of the download destination of WebDriver
[Python] I personally summarized the basic grammar.
Python: I tried the traveling salesman problem
The Python project template I think of.
Python's "I can't reach the itch ..." feature
[Python] Automatically operate the browser with Selenium
[Python beginner] I collected the articles I wrote
I can't install the package with pip.
I tried the Python Tornado Testing Framework
Why can't I install matplotlib in python! !!
I tried to automate the 100 yen deposit of Rakuten horse racing (python / selenium)
I tried "smoothing" the image with Python + OpenCV
[Python] I tried substituting the function name for the function name
Selenium + Firefox 47+ Can't load the profile. Error handling
vprof --I tried using the profiler for Python
I tried web scraping using python and selenium
I tried "differentiating" the image with Python + OpenCV
I tried simulating the "birthday paradox" in Python
I tried the least squares method in Python
I tried python programming for the first time.
I can't enter characters in the text area! ?? !! ?? !! !! ??
[Python] I searched for the longest Pokemon Shiritori
Try the free version of Progate [Python I]
I tried "binarizing" the image with Python + OpenCV
I tried using the Datetime module by Python
I touched some of the new features of Python 3.8 â‘ 
I implemented the inverse gamma function in python
[Python] I will upload the FTP to the FTP server.
I want to display the progress in Python!
[Python / Selenium] XPath
I tried to automate the article update of Livedoor blog with Python and selenium.
I can't ask you again (?) Python Knowledge Series -Decorator-
[Trainer's Recipe] I touched the flame of the Python framework.
What I got into Python for the first time
Note the frequently used options in Python + Selenium + Chrome
I tried to touch the CSV file with Python
I tried to solve the soma cube with python
When there are multiple Selenium SeleniumBasic classes (Python VBA)
I tried python on heroku for the first time
I was addicted to scraping with Selenium (+ Python) in 2020
I want to inherit to the back with python dataclass
[Python] I tried to graph the top 10 eyeshadow rankings
Let's start Python from Excel. I don't use VBA.
I want to write in Python! (3) Utilize the mock
A memo that I touched the Datastore with python
I tried to solve the problem with Python Vol.1
I felt that I ported the Python code to C ++ 98.
I can't manipulate iframes in a page with Selenium
[Note] I can't call the installed module in jupyter
I want to use the R dataset in python