appium-espresso-driver: DragNDrop fails with null object reference
Appium Server: Latest Master Java-Client: 6.1.0
MobileElement dragMe = (MobileElement) new WebDriverWait(driver, 30).until(ExpectedConditions
.elementToBeClickable(MobileBy.AccessibilityId("dragMe")));
WebElement source = dragMe;
WebElement target = driver.findElementByAccessibilityId("dropzone");
Actions actionBuilder = new Actions(driver);
Action dragAndDropAction = actionBuilder.clickAndHold(source).moveToElement(target, 1, 1) .release(target).build();
dragAndDropAction.perform();
Server logs: https://gist.github.com/saikrishna321/e0681990382ccde8d6fbc9635170d063
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (18 by maintainers)
Commits related to this issue
- [DOC] Updated java-example DragNDrop to use Point API (#11256) * Updated java-example DragNDrop to use Point API https://github.com/appium/appium-espresso-driver/issues/213 * fixed review comme... — committed to appium/appium by saikrishna321 6 years ago
- [DOC] Updated java-example DragNDrop to use Point API (#11256) * Updated java-example DragNDrop to use Point API https://github.com/appium/appium-espresso-driver/issues/213 * fixed review comme... — committed to appium/appium by saikrishna321 6 years ago
- [DOC] Updated java-example DragNDrop to use Point API (#11256) * Updated java-example DragNDrop to use Point API https://github.com/appium/appium-espresso-driver/issues/213 * fixed review comments ... — committed to dpgraham/appium-monorepo by saikrishna321 6 years ago
- [DOC] Updated java-example DragNDrop to use Point API (#11256) * Updated java-example DragNDrop to use Point API https://github.com/appium/appium-espresso-driver/issues/213 * fixed review comments ... — committed to dpgraham/appium-mono by saikrishna321 6 years ago
@dpgraham Fixes works well…
The chain is for sure not the one, which is supposed to work. Try the approach proposed by @jlipps in https://appiumpro.com/editions/29
@saikrishna321 If you are doing a
release
at the end of the action chain, try removing it.Thanks @saikrishna321 I think I should have a fix in shortly.
@dpgraham this is adb crash logs https://gist.github.com/saikrishna321/ad5007a0896e5d52c35ebf7c5c90717b