appium long press and than move element(drag and drop) is not working
<p>I have a scenario to test an IOS app like this:</p>

<blockquote>
  <ol>
  <li>long press on an element.</li>
  <li>move that element to desired location.</li>
  </ol>
</blockquote>

<p>I am using the following code:</p>

<pre><code>TouchAction action = new TouchAction(driver)
action.long_press(element1).move_to(element2).wait(500).release().perform()
</code></pre>

<p>but its not working for me. Need any good suggestion.</p>