Skip to content

Commit

Permalink
Wait for out IP address to show
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasberglund committed Aug 22, 2024
1 parent 04a4500 commit 13be217
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ class AppInteractor(

fun extractIpAddress(): String {
device.findObjectWithTimeout(By.res("location_info_test_tag")).click()

// Wait for out IP address information to show up
device.wait(Until.hasObject(By.textStartsWith("Out")), CONNECTION_TIMEOUT)
return device
.findObjectWithTimeout(
By.res("location_info_connection_out_test_tag"),
CONNECTION_TIMEOUT
By.res("location_info_connection_out_test_tag")
)
.text
.extractIpAddress()
Expand Down

0 comments on commit 13be217

Please sign in to comment.