Drag and Drop of TouchAction doesn't work at WebView in simulator at iOS hybrid app

Hi all

I’m using Appium to automate iOS hybrid app with Python.
After I switch to the WebView, I use TouchAction to perform a drag and drop.

The code is like this:

TouchAction(driver).long_press(start_element).move_to(end_element).release().perform()

and it doesn’t work.

Error code is “Yet impelemented”.

I have search in google, some people said, the TouchAction works in real device, and it’s not supported at simulator.

I’m really a little bit confused.

Could any one give me some advice that how to drag and drop at WebView in simulator with iOS hybrid?

or confirm that, the TouchAction works at real device, is not supported at simulator.

Your response will be really appreciated.

Thanks
Fox

I’m the owner of the ticket, and I found the resolution.

The Touch Action is only supported at native app, for the web view, it will throw a Not Implemented Yet error.

And for those who want to drag and drop elements in web view, the only way is :

1, Get the location of the element in web view.
2, Switch back to native app view, and use TouchAction class to drag it.

Don’t remember to add element size to the coordinate.

I have read a article said that the coordinates is different between native view and web view.
But it’s the same in my app. I’m not clear about it.

Thanks
Fox