Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 27, 2025

Remove redundant IsElementStale method and use WebDriverExtensions.IsStale

Cleanup: Remove duplicate IsElementStale and use existing WebDriverExtensions.IsStale()

Description

Addresses review feedback from #64542. The IsElementStale method in EnhancedNavigationTestUtil.cs duplicates functionality already available in WebDriverExtensions.IsStale().

Changes:

  • Remove IsElementStale from EnhancedNavigationTestUtil.cs
  • Update CanPerformNavigateToFromInteractiveEventHandler test to use element.IsStale() extension method
  • Remove unused wrapper method from EnhancedNavigationTest.cs

Customer Impact

None - test infrastructure cleanup only.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Test-only change, no production code affected.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

When servicing release/2.3

  • Make necessary changes in eng/PatchConfig.props

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@dotnet-policy-service
Copy link
Contributor

Greetings! You've submitted a PR that modifies code that is shared with https://github.com/dotnet/runtime . Please make sure you synchronize this code with the changes in that repo!

…Stale

Co-authored-by: javiercn <6995051+javiercn@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix NavigateTo API when enhanced nav is disabled Remove redundant IsElementStale method and use WebDriverExtensions.IsStale Nov 27, 2025
Copilot AI requested a review from javiercn November 27, 2025 13:11
Copilot finished work on behalf of javiercn November 27, 2025 13:11
@javiercn javiercn marked this pull request as ready for review November 27, 2025 13:35
@javiercn javiercn requested a review from a team as a code owner November 27, 2025 13:35
@javiercn javiercn merged commit 485495f into javiercn/forward-port-missing-52267-fix-to-10 Nov 27, 2025
16 of 25 checks passed
@javiercn javiercn deleted the copilot/sub-pr-64542 branch November 27, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants