Slide 35
Slide 35 text
The Proof object
open class NoProfileRobot(testContext: TestContext) : TestingRobot(testContext) {
@ProofObject
private val signUpOrLoginButton = selectObject(
viewIdSelector = ViewIdSelector(R.id.signup_button),
textSelector = TextSelector(R.string.sign_up_log_in)
)
fun clickSignUp(func: LoginOnboardingRobot.() -> Unit = {}): LoginOnboardingRobot
{
signUpOrLoginButton.click()
return loginOnboardingRobot(testContext, func).waitForPageToLoad()
}
}