Skip to content

Latest commit

 

History

History
30 lines (28 loc) · 604 Bytes

README.md

File metadata and controls

30 lines (28 loc) · 604 Bytes

kopi

Element wrapper library for Espresso testing framework

How to use with Gradle:

Add repository (jitpack):

	allprojects {
		repositories {
			maven { url 'https://jitpack.io' }
		}
	}

Dependency:

	dependencies {
	        androidTestImpl 'com.github.QAutomatron:kopi:version'
	}

Usage:

val fieldById = Element(withId(R.id.field))
// Tap element
fieldById.tap()
// Assert field
fieldById.sameAs("my_text")
// Wait for visibility
fieldById.waitForVisibility()