Fix Edge 142 download failure by updating Selenium Manager CDN URL#2184
Fix Edge 142 download failure by updating Selenium Manager CDN URL#2184MohabMohie merged 5 commits intomainfrom
Conversation
…th Edge 142 Co-authored-by: MohabMohie <[email protected]>
|
@copilot I think you're missing the point dear. I want you to analyze the differences and any changes made to this class between the two versions and focus on any changes made to edge and edge options. Reach the root cause of this failure and why it's happening on the new version and not the old one. And mainly for local execution. And suggest a solution to the root cause of the issue. Discard all the changes you've made so far as they are irrelevant and not needed. |
Co-authored-by: MohabMohie <[email protected]>
... You're absolutely right. I've identified the actual root cause: Microsoft changed Edge WebDriver CDN from The issue is NOT related to the SHAFT version changes (only docs/version bumps between 9.4.20251028 and 9.4.20251108). The timing issue likely relates to when Edge auto-updated to version 142. Fix implemented in f73d85a: Impact:
All previous changes have been reverted and replaced with this targeted fix. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2184 +/- ##
============================================
- Coverage 55.21% 48.67% -6.55%
+ Complexity 1541 1365 -176
============================================
Files 118 118
Lines 10886 10887 +1
Branches 1094 1094
============================================
- Hits 6011 5299 -712
- Misses 4194 4964 +770
+ Partials 681 624 -57 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Problem
SHAFT 9.4.20251108 fails to download EdgeDriver 142 when using local execution. The issue is caused by Microsoft's migration of Edge WebDriver downloads from
msedgedriver.azureedge.nettomsedgedriver.microsoft.com. Selenium Manager 4.38.0 still references the old URL, causing download failures.Root Cause Analysis
After analyzing differences between SHAFT 9.4.20251028 (working) and 9.4.20251108 (broken):
Changes
Set correct Selenium Manager CDN URL for Edge
System.setProperty("SE_DRIVER_MIRROR_URL", "https://msedgedriver.microsoft.com")before creating Edge driver instances in local execution modeImplementation
Impact
✅ Edge 142+ now downloads successfully on first attempt
✅ No retry loops or delays
✅ Minimal 1-line fix with no impact on other browsers or dockerized execution
✅ Forward compatible with future Edge versions
Fixes [Bug]: SHAFT 9.4.20251108 causes infinite loops with Edge 142, while 9.4.20251028 works perfectly. #2183
Original prompt
💡 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.