Skip to content

Add handleButtonClickForObjectWithTextSafely overload to fix build, Fixes AB#3586240#3097

Merged
mohitc1 merged 3 commits intodevfrom
mchand/add-handleButtonClickForObjectWithTextSafely-overload
Apr 24, 2026
Merged

Add handleButtonClickForObjectWithTextSafely overload to fix build, Fixes AB#3586240#3097
mohitc1 merged 3 commits intodevfrom
mchand/add-handleButtonClickForObjectWithTextSafely-overload

Conversation

@mohitc1
Copy link
Copy Markdown
Contributor

@mohitc1 mohitc1 commented Apr 24, 2026

As seen here
https://identitydivision.visualstudio.com/Engineering/ISP%20-%20ID%20Risk%20for%20Passkey%20Registration%20and%20Recovery/_build/results?buildId=1626465&view=logs&s=ff4555a9-e895-5c04-ab14-88c3aa79b4da&j=9a146641-6417-5767-ad44-2e332adab356

Seems to have happened after AzureAD/microsoft-authentication-library-for-android#2502

/mnt/vss/_work/1/s/msalautomationapp/src/androidTest/java/com/microsoft/identity/client/msal/automationapp/testpass/broker/foci/TestCase833544.java:107: error: method handleButtonClickForObjectWithTextSafely in class UiAutomatorUtils cannot be applied to given types;
UiAutomatorUtils.handleButtonClickForObjectWithTextSafely("Close", CommonUtils.FIND_UI_ELEMENT_TIMEOUT_SHORT);

Fixes AB#3586240

@mohitc1 mohitc1 added No-Changelog This Pull-Request has no associated changelog entry. Skip-Consumers-Check Only include this if making a breaking change purposefully, and there is an MSAL/ADAL/Broker PR labels Apr 24, 2026
@github-actions
Copy link
Copy Markdown

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

@mohitc1 mohitc1 marked this pull request as ready for review April 24, 2026 21:34
@mohitc1 mohitc1 requested a review from a team as a code owner April 24, 2026 21:34
Copilot AI review requested due to automatic review settings April 24, 2026 21:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds an overload of handleButtonClickForObjectWithTextSafely that accepts an explicit existence timeout to resolve a build break introduced by a prior change.

Changes:

  • Introduced a new handleButtonClickForObjectWithTextSafely(String text, long existsTimeout) overload.
  • Uses obtainUiObjectWithText(text, existsTimeout) before attempting a click and logs a warning if not found.

mohitc1 and others added 2 commits April 24, 2026 14:42
…ent/ui/automation/utils/UiAutomatorUtils.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

✅ Work item link check complete. Description contains link AB#3586240 to an Azure Boards work item.

@github-actions github-actions Bot changed the title Add handleButtonClickForObjectWithTextSafely overload to fix build Add handleButtonClickForObjectWithTextSafely overload to fix build, Fixes AB#3586240 Apr 24, 2026
@mohitc1 mohitc1 merged commit 2d22489 into dev Apr 24, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No-Changelog This Pull-Request has no associated changelog entry. Skip-Consumers-Check Only include this if making a breaking change purposefully, and there is an MSAL/ADAL/Broker PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants