title: How interact with dcc.DatePickerSingle using selenium
body: <p>I am testing a dashboard created with dash and I have a couple of dcc.DatePickerSingle. I want to test these by introducing some dates and then also test that the result generated by the dashboard is equal to the expected value.</p>
  <p>I show the code I am using</p>
  <pre><code>import pytest
  from selenium.webdriver import Chrome
  from selenium.webdriver.common.keys import Keys
  
  import pytest
  from selenium import webdriver
  import sys
  from selenium.webdriver.chrome.options import Options
  from selenium.webdriver.common.keys import Keys
  from time import sleep
  
  
  URL = 'http://127.0.0.1:8001/'
  @pytest.fixture
  def browser():
    # Initialize ChromeDriver
    driver = Chrome(&quot;./chromedriver&quot;)
    # Wait implicitly for elements to be ready before attempting interactions
    driver.implicitly_wait(10)
    
    # Return the driver object at the end of setup
    yield driver
    
    # For cleanup, quit the driver
    driver.quit()
  
  def test_dates(browser):
    browser.get(URL)
    data_start =&quot;Hola&quot;
    search_input1 = browser.find_element_by_id('my-date-picker-start')
    search_input1.send_keys(data_start)
  
  </code></pre>
  <p>The error I got after many different attend is</p>
  <pre><code>ElementNotInteractableException
  </code></pre>
  <p>To run this the command is <code>pipenv run python -m pytest</code></p>
  <p>Is this element not iterable (I douth that) or I am doing something wrong (Very likely)?</p>