Skip to content

Commit

Permalink
Wait for text contains IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasberglund committed Aug 26, 2024
1 parent 30ffd4a commit a5993ab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ class AppInteractor(
device.findObjectWithTimeout(By.res("location_info_test_tag")).click()
return device
.findObjectWithTimeout(
By.res("location_info_connection_out_test_tag").textStartsWith("Out")
// Text exist and contains IP address
By.res("location_info_connection_out_test_tag").textContains(".")
)
.text
.extractIpAddress()
Expand Down

0 comments on commit a5993ab

Please sign in to comment.