What Is New In Appium 2.0?








Changes in Driver and Classes :

  • MobileElement classes including AndroidElement and iOSElement classes are removed. It is recommended to use WebElement.
 @AndroidFindBy(xpath ="//android.widget.TextView[@text='Continue']")
 private WebElement Continue;
  • Mobile By Class has been removed, and AppiumBy Class has been introduced.

Older Way:

driver.findElement(MobileBy.id("loginbutton")).click();

New Way:

 driver.findElement(AppiumBy.id("loginbutton")).click();
TOuch Actions and Multi touch Actions :

From Appium 2.0 both TouchAction and MultiTouchAction class has been depreciated.W3c Action API will be used for automating gestures. For Example, the double Click Gesture can be achieved using the below code:

driver.executeScript("mobile: doubleClickGesture", ImmutableMap.of(
   "elementId", ((RemoteWebElement) element).getId());
"WD" Javascript client Library no Longer Supported:

For many years, some of Appium's authors maintained the WD client library. This library has been deprecated and has not been updated for use with the W3C WebDriver protocol. As such, if you're using this library you'll need to move to a more modern one. We recommend WebdriverIO.

Appium Desktop replaced with Appium Inspector:

The inspector functionality of Appium Desktop has been moved to its own app: Appium Inspector. It's fully compatible with standalone Appium 2.0 servers, but also works with later versions of Appium 1.x servers. Appium Desktop itself has been deprecated and is not compatible with Appium 2.0.


Sunil@TestingTuition



Comments