Skip to content

rreid116/espresso_clone

 
 

Repository files navigation

This is Google's Espresso 1.1 with a boolean "exists()" added to the ViewInteraction class. This allows one to write code like:

if(onView(withText("click OK to Continue")).exists()){ doSomething(); } else { doSomethingElse(); }

Please be aware that Espresso does not contain such funtionality by design, according one of it's Authors at http://stackoverflow.com/questions/20807131/espresso-return-boolean-if-view-exists

To compile:

  • Ubuntu 14.04 Server LTS 64 bits
  • oracle java version "1.7.0_67"
    • sudo add-apt-repository ppa:webupd8team/java
    • sudo apt-get update
    • sudo apt-get install oracle-java7-installer
    • sudo apt-get install oracle-java7-set-default
  • android sdk 19 (kitkat)
    • sudo apt-get install libc6-i386 lib32z1 lib32stdc++6
  • mvn install

by the way, it fails compiling the tests, just like the original Espresso code does, but since I need just ./espresso/lib/target/espresso-1.1-bundled.jar , I am happy with the results

Marcos Diez ( marcos AT unitron DOT com DOT br)

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%