title: Python Selenium ActionChains - drag_and_drop method isn't working properly
body: <p>I'm trying to drag and drop an element using ActionChains. But can't get it to work.</p>
  
  <p>Environment:</p>
  
  <ul>
  <li>Python 3.x</li>
  <li>Selenium 3.14.x</li>
  <li>Driver: Chrome</li>
  <li>PC: Mac OS X 10.14.15</li>
  <li>Url: <a href="https://demoqa.com/sortable/" rel="nofollow noreferrer">https://demoqa.com/sortable/</a></li>
  </ul>
  
  <p>So there are two drag and drop methods:</p>
  
  <p>drag_and_drop</p>
  
  <p>drag_and_drop_by_offset</p>
  
  <p>When I try with offset it works but when I use regular drag_and_drop it doesn't.</p>
  
  <pre class="lang-py prettyprint-override"><code>driver = webdriver.Chrome()
  driver.get("https://demoqa.com/")
  
  sortable_button = driver.find_element(
      By.CSS_SELECTOR, "aside.widget:nth-of-type(1) li:nth-of-type(1)")
  sortable_button.click()
  items = driver.find_elements(By.CSS_SELECTOR, "#sortable li")
  actions = ActionChains(driver)
  actions.drag_and_drop_by_offset(items[0], 0, 200).perform()
  # actions.drag_and_drop(items[0], items[4]).perform()
  time.sleep(5)
  driver.close()
  </code></pre>