[dotnet] Make CI green again according to the 4.41 breaking changes#2588
[dotnet] Make CI green again according to the 4.41 breaking changes#2588nvborisenko wants to merge 11 commits into
Conversation
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Latest suggestions up to 4e2f512
Previous suggestions✅ Suggestions up to commit 676da4d
|
|||||||||||||||||||||
|
Current version is 4.46 and it was bumped already. |
|
This PR is about to adjust code slightly according the latest small breaking changes. Reopening, here I am going to make CI green again since trunk is already updated to 4.46 |
PR Summary by QodoUpgrade .NET examples to Selenium 4.41 (async DriverFinder + DevTools V145)
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1.
|
| using System.IO; | ||
| using System.Linq; | ||
| using System.Text.RegularExpressions; | ||
| using System.Threading.Tasks; |
There was a problem hiding this comment.
Line number shifting, risky.
| using System.Collections.Generic; | ||
| using System.IO; | ||
| using System.Linq; | ||
| using System.Threading.Tasks; |
There was a problem hiding this comment.
Line number shifting, risky.
| @@ -1,3 +1,4 @@ | |||
| using System.Threading.Tasks; | |||
There was a problem hiding this comment.
Line number shifting, risky.
| @@ -1,5 +1,4 @@ | |||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | |||
| using OpenQA.Selenium; | |||
There was a problem hiding this comment.
Line number shifting, risky.
|
Interesting issue that executable |
User description
Selenium v4.41 has small breaking changes for
SeleniumManagerandDriverFinder. Both have more robust public API.Description
Motivation and Context
Actualize examples.
Types of changes
Checklist
PR Type
Enhancement
Description
Upgrade Selenium WebDriver NuGet packages from 4.38.0 to 4.41.0
Update DevTools API references from V142 to V145
Convert DriverFinder methods to async with new API
Add System.Threading.Tasks imports for async support
Diagram Walkthrough
File Walkthrough
SeleniumDocs.csproj
Upgrade Selenium NuGet packages to 4.41.0examples/dotnet/SeleniumDocs/SeleniumDocs.csproj
Selenium.Supportpackage from 4.38.0 to 4.41.0Selenium.WebDriverpackage from 4.38.0 to 4.41.0NetworkTest.cs
Update DevTools API from V142 to V145examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs
GetVersionSpecificDomainscalls to use V145 APIEnableCommandSettingsreferences to V145 namespaceChromeTest.cs
Convert Chrome browser location methods to asyncexamples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs
System.Threading.Tasksimport for async supportSetBrowserLocation()method to async TaskGetChromeLocation()toGetChromeLocationAsync()with asyncimplementation
DriverFinder.GetBrowserPath()toGetBrowserPathAsync()withawait
EdgeTest.cs
Convert Edge browser location methods to asyncexamples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs
System.Threading.Tasksimport for async supportSetBrowserLocation()method to async TaskGetEdgeLocation()toGetEdgeLocationAsync()with asyncimplementation
DriverFinder.GetBrowserPath()toGetBrowserPathAsync()withawait
FirefoxTest.cs
Convert Firefox browser location methods to asyncexamples/dotnet/SeleniumDocs/Browsers/FirefoxTest.cs
System.Threading.Tasksimport for async supportSetBinary()method to async TaskGetFirefoxLocation()toGetFirefoxLocationAsync()with asyncimplementation
DriverFinder.GetBrowserPath()toGetBrowserPathAsync()withawait
ServiceTest.cs
Convert driver location method to asyncexamples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs
System.Threading.Tasksimport for async supportDriverLocation()method to async TaskGetDriverLocation()toGetDriverLocationAsync()with asyncimplementation
DriverFinder.GetDriverPath()toGetDriverPathAsync()withawait
LoggingTest.cs
Update imports for Selenium 4.41 APIexamples/dotnet/SeleniumDocs/Troubleshooting/LoggingTest.cs
OpenQA.SeleniumimportOpenQA.Selenium.Managerimport for new API