Files
appium/lib/devices/android/bootstrap
bootstraponline 1b255378ab Discard NotImportantViews only for XPath & DumpWindow
When setCompressedLayoutHeirarchy is enabled, views not marked as important to accessibility are discarded. This must be enabled for XPath and page source to work. If it's left enabled then it's not possible to find unimportant elements via other locator strategies.

If discard is toggled back to false at the end of an XPath request it will break XPath. To safely set discard to false, the code waits for the next find request that doesn't use XPath.

Thanks @paymand for figuring out how to make this work!
2014-05-13 12:48:37 -04:00
..

Bootstrap Android

To install the Android Maven dependencies in your local environment, run the following:

  • Clone https://github.com/mosabua/maven-android-sdk-deployer into your workstation
  • Set the ANDROID_HOME environment to the location of the Android SDK, eg. export ANDROID_HOME=/Developer/adt-bundle-mac-x86_64-20130219/sdk/
  • Run mvn install -P 4.3 from the maven-android-sdk-deployer directory. The build will fail if API 18 and some extra packages are not installed.

You can then compile the bootstrap project by running

mvn package -P 4.3

If mvn package fails, try deleting your ANDROID_HOME folder and downloading everything again. If it still doesn't work try:

android-sdk/tools/android update sdk --no-ui --obsolete --force

and then run mvn clean ; mvn install