[dotnet] Upgrade examples to selenium 4.41#2588
[dotnet] Upgrade examples to selenium 4.41#2588nvborisenko wants to merge 2 commits intoSeleniumHQ:trunkfrom
Conversation
✅ Deploy Preview for selenium-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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 ✨Explore these optional code suggestions:
|
|||||||||
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