Skip to content

Commit

Permalink
Wait for login button to be clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasberglund committed Aug 23, 2024
1 parent d1c8c10 commit 73a06cb
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.clickable(true), DEFAULT_INTERACTION_TIMEOUT)
loginButton.click()
}

fun attemptCreateAccount() {
Expand Down

0 comments on commit 73a06cb

Please sign in to comment.