title: Selenium python how I preform a click on toggle button
body: <p>I am trying to click in call loop toggle with Selenium with the WebDriver on Python.</p>
  <p>the html code:</p>
  <p><a href="https://i.stack.imgur.com/xfmb6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xfmb6.png" alt="enter image description here" /></a></p>
  <p>this is the button:</p>
  <p><a href="https://i.stack.imgur.com/kDzuK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kDzuK.png" alt="enter image description here" /></a></p>
  <p>I have tried few options:</p>
  <pre><code>button_element = driver.find_element_by_class_name(&quot;iPhoneCheckContainer&quot;)
  button_element.click()
  </code></pre>
  <p>the filed message:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\kosti\PycharmProjects\test1\main.py&quot;, line 50, in &lt;module&gt;
      element = driver.find_element_by_xpath(&quot;//input[@id='on_off_on']&quot;).click()
    File &quot;C:\Users\kosti\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webelement.py&quot;, line 80, in click
      self._execute(Command.CLICK_ELEMENT)
    File &quot;C:\Users\kosti\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webelement.py&quot;, line 633, in _execute
      return self._parent.execute(command, params)
    File &quot;C:\Users\kosti\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py&quot;, line 321, in execute
      self.error_handler.check_response(response)
    File &quot;C:\Users\kosti\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py&quot;, line 242, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element &lt;input type=&quot;checkbox&quot; id=&quot;on_off_on&quot; value=&quot;1&quot; name=&quot;AllowReset&quot; checked=&quot;&quot;&gt; is not clickable at point (171, 261). Other element would receive the click: &lt;div class=&quot;iPhoneCheckHandle&quot; style=&quot;width: 30px; left: 30px;&quot;&gt;...&lt;/div&gt;
    (Session info: chrome=88.0.4324.150)
  </code></pre>