-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Adding WaitForDownload test for .NET #1885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for selenium-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
CLA assistant check
All committers have signed the CLA.
PR Reviewer Guide 🔍
Security concern:
Adding '--no-sandbox' to ChromeOptions (examples/dotnet/SeleniumDocs/BaseTest.cs, line 42) disables the Chrome sandbox, which is a security feature. This can potentially expose the system to security risks if malicious code is executed. While it may be necessary for testing environments, it should be used with caution and not in production environments.
Security Concern
Adding '--no-sandbox' argument to ChromeOptions may introduce security risks in production environments.
Error Handling
The WaitForDownload test method lacks proper error handling for potential exceptions during file operations.
PR Code Suggestions ✨
|
@halex2005 can you please sign the CLA?
@diemol, signed
4f00d80 to
9518ffe
Compare
9518ffe to
167d479
Compare
looks like the failing check is unrelated @diemol
@A1exKH
A1exKH
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@halex2005 resolve conflicts for this PR, please.
Code LGTM.
This user approves PRs but never really checks them. Just to get activity in their GitHub profile.
@halex2005, there are compilation issues.
cannot convert from 'string' to 'int'
Uh oh!
There was an error while loading. Please reload this page.
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