Skip to content

Commit

Permalink
Wait for login button to be enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasberglund committed Aug 26, 2024
1 parent 06c236f commit c74e13e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ class AppInteractor(
device.findObjectWithTimeout(By.clazz("android.widget.EditText")).apply {
text = accountNumber
}
loginObject.parent.findObject(By.clazz(Button::class.java)).click()
val loginButton = loginObject.parent.findObject(By.clazz(Button::class.java))
loginButton.wait(Until.enabled(true), DEFAULT_INTERACTION_TIMEOUT)
loginButton.click()
}

fun attemptCreateAccount() {
Expand Down

0 comments on commit c74e13e

Please sign in to comment.