# Some of the methods from MobileElement and AppiumDriver class missing in 5.0.4

**URL:** <https://discuss.appium.io/t/some-of-the-methods-from-mobileelement-and-appiumdriver-class-missing-in-5-0-4/19039>\
**Category:** Feature\
**Created:** [October 4, 2017, 7:02pm UTC](https://discuss.appium.io/t/some-of-the-methods-from-mobileelement-and-appiumdriver-class-missing-in-5-0-4/19039 "2017-10-04T19:02:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sayemm77](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@sayemm77](https://discuss.appium.io/u/sayemm77)\
**Post date:** [October 4, 2017, 7:02pm UTC](https://discuss.appium.io/t/some-of-the-methods-from-mobileelement-and-appiumdriver-class-missing-in-5-0-4/19039/1 "2017-10-04T19:02:13Z")

</div>

Hi, i upgraded Appium/java-client from 4.0.0 to 5.0.4 along with Selenium Java client from 2.53.0 to 3.6.0. After the upgrade in my Base class where i have all the common functions that use mobileElement.tap(1, 1); method from MobileElement class and AppiumDriverFactory.getAppiumDriver().swipe(startX, startY, startX, endY, swipeTime) and AppiumDriverFactory.getAppiumDriver().tap(1, xAxis, yAxis, 1000);from AppiumDriver class not able to find those methods. Did Appium removed those methods from the above classes. if so how can i resolve this issues.  
Also TouchAction class looks like touchAction.waitAction(2000) not longer taking int. Please advise.

---

<div class="post-metadata">

**Author:** ![Telmo\_Cardoso](https://discuss.appium.io/user_avatar/discuss.appium.io/telmo_cardoso/32/1435_2.png) [@Telmo\_Cardoso](https://discuss.appium.io/u/Telmo_Cardoso)\
**Post date:** [October 5, 2017, 12:31am UTC](https://discuss.appium.io/t/some-of-the-methods-from-mobileelement-and-appiumdriver-class-missing-in-5-0-4/19039/2 "2017-10-05T00:31:31Z")

</div>

native int for time was replaced with Duration:

```
[ENHANCEMENT] [REFACTOR] Methods which were representing time deltas instead of elementary types became Deprecated. Methods which use java.time.Duration are suugested to be used. #611

```

The list of classes and methods which were removed:

```
AppiumDriver#swipe(int, int, int, int, int)
AppiumDriver#pinch(WebElement)
AppiumDriver#pinch(int, int)
AppiumDriver#zoom(WebElement)
AppiumDriver#zoom(int, int)
AppiumDriver#tap(int, WebElement, int)
AppiumDriver#tap(int, int, int, int)
AppiumDriver#swipe(int, int, int, int, int)
MobileElement#swipe(SwipeElementDirection, int)
MobileElement#swipe(SwipeElementDirection, int, int, int)
MobileElement#zoom()
MobileElement#pinch()
MobileElement#tap(int, int)

```

You should use TouchAction and MultiTouchAction. Release notes for java client in here [https://github.com/appium/java-client/releases](https://github.com/appium/java-client/releases).

---

<div class="post-metadata">

**Author:** ![sayemm77](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@sayemm77](https://discuss.appium.io/u/sayemm77)\
**Post date:** [October 5, 2017, 2:06pm UTC](https://discuss.appium.io/t/some-of-the-methods-from-mobileelement-and-appiumdriver-class-missing-in-5-0-4/19039/3 "2017-10-05T14:06:57Z")

</div>

Thank you for your reply. is there there any specific method i can replace the swipe with.
