Skip to content

Commit

Permalink
Add bypassing of new chrome screen
Browse files Browse the repository at this point in the history
  • Loading branch information
tokou committed Sep 16, 2024
1 parent 743cf9c commit b1e2898
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions maestro-client/src/main/java/maestro/drivers/AndroidDriver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,14 @@ class AndroidDriver(
// Welcome to Chrome screen "Add account to device"
filterById("$chrome:id/signin_fre_dismiss_button")?.let { tap(it.bounds.center()) }
waitForAppToSettle(null, null)
// Ad privacy feature
filterById("$chrome:id/more_button")?.let { tap(it.bounds.center()) }
filterById("$chrome:id/no_button")?.let { tap(it.bounds.center()) }
waitForAppToSettle(null, null)
// Other ad privacy feature
filterById("$chrome:id/more_button")?.let { tap(it.bounds.center()) }
filterById("$chrome:id/ack_button")?.let { tap(it.bounds.center()) }
waitForAppToSettle(null, null)
// Turn on Sync screen
filterById("$chrome:id/negative_button")?.let { tap(it.bounds.center()) }
waitForAppToSettle(null, null)
Expand Down

0 comments on commit b1e2898

Please sign in to comment.