synchronized with Appium 1.2.0.0