Skip to content

Element wrapper library for Espresso test framework

License

Notifications You must be signed in to change notification settings

QAutomatron/kopi

Repository files navigation

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()