Skip to content

Support Safari tab bar mode in EarlGrey openDeepLinkURL. - #2193

Open
copybara-service[bot] wants to merge 1 commit into
earlgrey2from
test_974101434
Open

copybara-service[bot] wants to merge 1 commit into
earlgrey2from
test_974101434

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Support Safari tab bar mode in EarlGrey openDeepLinkURL.

In modern iOS versions (iOS 16+), Safari renders the address bar as a compact
tab bar item with accessibility identifier "TabBarItemTitle" (either a text
field or a button). Previously, EarlGrey failed to detect the URL bar in this
mode, resulting in interaction timeouts.

  • Add detection and handling for safariApp.textFields[@"TabBarItemTitle"] and
    safariApp.buttons[@"TabBarItemTitle"] using kWaitForExistenceTimeout.
  • Tap the element, handle onboarding swipe tutorials on iOS 15+, wait for the
    URL text field, type the URL, and tap "Go".
  • Update existing swipeTutorialButton checks in "Search or enter website name"
    branches to use kWaitForExistenceTimeout instead of the hardcoded 5 seconds.
  • Add test coverage in DeepLinkTests.g3only.m for opening deep links when
    Safari has an open tab / tab bar item present.

@copybara-service copybara-service Bot changed the title Internal Commit Uploaded Support Safari tab bar mode in EarlGrey openDeepLinkURL. Aug 31, 2026
@copybara-service
copybara-service Bot force-pushed the test_974101434 branch 3 times, most recently from a37c2fc to c2661bd Compare September 4, 2026 21:33
In modern iOS versions (iOS 16+), Safari renders the address bar as a compact
tab bar item with accessibility identifier "TabBarItemTitle" (either a text
field or a button). Previously, EarlGrey failed to detect the URL bar in this
mode, resulting in interaction timeouts.

- Add detection and handling for safariApp.textFields[@"TabBarItemTitle"] and
  safariApp.buttons[@"TabBarItemTitle"] using kWaitForExistenceTimeout.
- Tap the element, handle onboarding swipe tutorials on iOS 15+, wait for the
  URL text field, type the URL, and tap "Go".
- Update existing swipeTutorialButton checks in "Search or enter website name"
  branches to use kWaitForExistenceTimeout instead of the hardcoded 5 seconds.
- Add test coverage in DeepLinkTests.g3only.m for opening deep links when
  Safari has an open tab / tab bar item present.

PiperOrigin-RevId: 974101434

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant