Appium 2.0 Release and update - Part 1

 Appium info

Appium Desktop is unsupported, no longer maintained, and has known security vulnerabilities. It is advised not to use it at all. Use at your own risk.


appium 2.0



Is Appium deprecated?


AppiumDriver methods resetApp, launchApp and closeApp have been deprecated as they are going to be removed from future Appium versions. The following method can be helpful to launch App by using startActivity method and ResetApp by using clearApp and StartActivity methods


Migrating from Appium 1.x to Appium 2.x


Appium 2.0 is the most major new release of Appium in over 5 years.


Default server base path : 


With Appium 1.x, the server would accept commands by default on http://localhost:4723/wd/hub

With Appium 2.x, the default base path for the server is now /


Installing drivers during setup :


With Appium 1.x, all available drivers would be installed at the same time as the main Appium server

With Appium 2.x, This is no longer the case. Simply installing Appium 2.0, will install the Appium server only, but no drivers


How to install appium 2.x


 - npm install -g appium@next


To install the latest versions of the XCUITest and UiAutomator2 drivers, after installing Appium you would run the following commands:


 - appium driver install uiautomator2     # installs the latest driver version


 - appium driver install xcuitest@4.12.2  # installs a specific driver version



If you want to install appium with two drivers for you in one go


 - npm install --global appium --drivers=xcuitest,uiautomator2


if you get an installation or startup error. Please uninstall any existing Appium 1.x npm packages

 - npm uninstall -g appium


Drivers installation path

  With installed Appium 1.x, all available drivers would be installed in the path as /path/to/appium/node_modules. 


For example, appium-webdriveragent to build WebDriverAgent manually was /path/to/appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent.


Part 2 continues

No comments:

Post a Comment