Skip to content

Element wrapper library for Espresso test framework

License

Notifications You must be signed in to change notification settings

QAutomatron/kopi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4927be6 · Feb 16, 2024
Jun 8, 2022
Jul 19, 2022
Feb 16, 2024
Jan 18, 2019
Apr 24, 2020
Jun 8, 2022
Feb 16, 2024
Mar 15, 2019
Mar 25, 2021
Mar 25, 2021
Dec 13, 2021
Jan 18, 2019

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