Adding WaitForDownload test for .NET#1885
Conversation
✅ Deploy Preview for selenium-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
|
@halex2005 can you please sign the CLA? |
|
@diemol, signed |
|
looks like the failing check is unrelated @diemol |
This user approves PRs but never really checks them. Just to get activity in their GitHub profile.
|
@halex2005, there are compilation issues.
|
✅ Deploy Preview for selenium-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
The CDP DevToolsEventReceivedEventArgs.EventData is a JsonElement, not a string-keyed dictionary, so the merge from trunk didn't compile. Use the strongly-typed Browser.DownloadProgress event instead, matching the pattern already used by the SetCookie/PerformanceMetrics tests in this file, and correct the CSharp gh-codeblock line ranges across all locales.
Code Review by Qodo
Context used✅ Compliance rules (platform):
10 rules 1. Cleanup delete can fail
|
…ak-proof Replace the blocking ManualResetEvent.WaitOne with an awaited TaskCompletionSource, and download into a unique per-run temp directory that's cleaned up in a finally block so failed assertions don't leave artifacts behind or risk cross-test interference.
|
Code review by qodo was updated up to the latest commit 1b67106 |
User description
Hi!
Description
I've added WaitForDownload test case for .NET.
Review, please.
Note, that I've also added
--no-sandboxswitch to ChromeOptions because chrome crashes without it.It's to make sure that tests are green.
Types of changes
Checklist
PR Type
Tests, Enhancement
Description
WaitForDownloadtest method inNetworkTest.csto handle and verify file downloads.BaseTest.csby adding a--no-sandboxargument to ChromeOptions to prevent Chrome crashes during tests.Changes walkthrough 📝
BaseTest.cs
Add no-sandbox argument to ChromeOptionsexamples/dotnet/SeleniumDocs/BaseTest.cs
--no-sandboxargument to ChromeOptions.NetworkTest.cs
Add WaitForDownload test method for file downloadsexamples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs
WaitForDownloadtest method.network.en.md
Update CSharp tab with code block referencewebsite_and_docs/content/documentation/webdriver/bidi/cdp/network.en.md
network.ja.md
Update CSharp tab with code block referencewebsite_and_docs/content/documentation/webdriver/bidi/cdp/network.ja.md
network.pt-br.md
Update CSharp tab with code block referencewebsite_and_docs/content/documentation/webdriver/bidi/cdp/network.pt-br.md
network.zh-cn.md
Update CSharp tab with code block referencewebsite_and_docs/content/documentation/webdriver/bidi/cdp/network.zh-cn.md