You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for contributing to the Selenium site and documentation! A PR well described will help maintainers to review and merge it quickly
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.
A couple of flags were added to the service in FF and this enables those tests we already had.
Description
Motivation and Context
Types of changes
Change to the site (I have double-checked the Netlify deployment, and my changes look good)
Code example added (and I also added the example to all translated languages)
Improved translation
Added new translation (and I also added a notice to each document missing translation)
The condition in GetLogLocation() method has incorrect logic. It checks if _logLocation is null/empty AND if the file doesn't exist, but it should use OR logic instead. This could cause the method to not create a new temp file when needed.
The logical condition is incorrect. When _logLocation is null or empty, checking File.Exists(_logLocation) will always return false, making the condition always true. Use OR operator instead of AND to properly handle both null/empty and non-existent file cases.
Why: The suggestion correctly identifies a logical bug in the new code, as using && would prevent creating a new temp file if _logLocation has a value but the file doesn't exist.
The action failed due to compilation errors in the .NET project. The FirefoxDriverService class does not contain a definition for LogPath property at two locations: • Line 68 in FirefoxTest.cs • Line 97 in FirefoxTest.cs
This suggests that the LogPath property has been removed or renamed in the current version of the Selenium WebDriver library being used. The action was retried 3 times but failed consistently with the same compilation errors.
Relevant error logs:
1: ##[group]Runner Image Provisioner2: Hosted Compute Agent
...
188: Version: 11.0.28+6189: Path: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.28-6\x64190: ##[endgroup]191: Creating settings.xml with server-id: github192: Writing to C:\Users\runneradmin\.m2\settings.xml193: ##[group]Run nick-fields/[email protected]194: with:195: timeout_minutes: 20196: max_attempts: 3197: command: cd examples/dotnet/SeleniumDocs198: dotnet test199:
200: retry_wait_seconds: 10201: polling_interval_seconds: 1202: warning_on_retry: true203: continue_on_error: false204: env:205: DISPLAY: :99206: GITHUB_TOKEN: ***207: GH_TOKEN: ***208: DOTNET_ROOT: C:\Program Files\dotnet209: JAVA_HOME: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.28-6\x64210: JAVA_HOME_11_X64: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.28-6\x64211: ##[endgroup]212: ##[group]Attempt 1213: Determining projects to restore...214: Restored D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\SeleniumDocs.csproj (in 13.54 sec).215: ##[warning]D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\Troubleshooting\LoggingTest.cs(48,35): warning CS0618: 'ConsoleLogHandler' is obsolete: 'Use TextWriterHandler instead, will be removed in v4.32' [D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\SeleniumDocs.csproj]216: ##[error]D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\Browsers\FirefoxTest.cs(68,21): error CS1061: 'FirefoxDriverService' does not contain a definition for 'LogPath' and no accessible extension method 'LogPath' accepting a first argument of type 'FirefoxDriverService' could be found (are you missing a using directive or an assembly reference?) [D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\SeleniumDocs.csproj]217: ##[error]D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\Browsers\FirefoxTest.cs(97,21): error CS1061: 'FirefoxDriverService' does not contain a definition for 'LogPath' and no accessible extension method 'LogPath' accepting a first argument of type 'FirefoxDriverService' could be found (are you missing a using directive or an assembly reference?) [D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\SeleniumDocs.csproj]218: Workload updates are available. Run `dotnet workload list` for more information.219: ##[warning]Attempt 1 failed. Reason: Child_process exited with error code 1220: ##[endgroup]221: ##[group]Attempt 2222: Determining projects to restore...223: All projects are up-to-date for restore.224: ##[warning]D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\Troubleshooting\LoggingTest.cs(48,35): warning CS0618: 'ConsoleLogHandler' is obsolete: 'Use TextWriterHandler instead, will be removed in v4.32' [D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\SeleniumDocs.csproj]225: ##[error]D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\Browsers\FirefoxTest.cs(68,21): error CS1061: 'FirefoxDriverService' does not contain a definition for 'LogPath' and no accessible extension method 'LogPath' accepting a first argument of type 'FirefoxDriverService' could be found (are you missing a using directive or an assembly reference?) [D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\SeleniumDocs.csproj]226: ##[error]D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\Browsers\FirefoxTest.cs(97,21): error CS1061: 'FirefoxDriverService' does not contain a definition for 'LogPath' and no accessible extension method 'LogPath' accepting a first argument of type 'FirefoxDriverService' could be found (are you missing a using directive or an assembly reference?) [D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\SeleniumDocs.csproj]227: Workload updates are available. Run `dotnet workload list` for more information.228: ##[warning]Attempt 2 failed. Reason: Child_process exited with error code 1229: ##[endgroup]230: ##[group]Attempt 3231: Determining projects to restore...232: All projects are up-to-date for restore.233: ##[warning]D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\Troubleshooting\LoggingTest.cs(48,35): warning CS0618: 'ConsoleLogHandler' is obsolete: 'Use TextWriterHandler instead, will be removed in v4.32' [D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\SeleniumDocs.csproj]234: ##[error]D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\Browsers\FirefoxTest.cs(68,21): error CS1061: 'FirefoxDriverService' does not contain a definition for 'LogPath' and no accessible extension method 'LogPath' accepting a first argument of type 'FirefoxDriverService' could be found (are you missing a using directive or an assembly reference?) [D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\SeleniumDocs.csproj]235: ##[error]D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\Browsers\FirefoxTest.cs(97,21): error CS1061: 'FirefoxDriverService' does not contain a definition for 'LogPath' and no accessible extension method 'LogPath' accepting a first argument of type 'FirefoxDriverService' could be found (are you missing a using directive or an assembly reference?) [D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\dotnet\SeleniumDocs\SeleniumDocs.csproj]236: Workload updates are available. Run `dotnet workload list` for more information.237: ##[endgroup]238: ##[error]Final attempt failed. Child_process exited with error code 1239: Post job cleanup.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.
A couple of flags were added to the service in FF and this enables those tests we already had.
Description
Motivation and Context
Types of changes
Checklist
PR Type
Tests
Description
Enable two previously ignored Firefox driver tests
Fix log file path configuration for Firefox service
Correct log location validation logic
Diagram Walkthrough
File Walkthrough
FirefoxTest.cs
Enable Firefox driver logging tests
examples/dotnet/SeleniumDocs/Browsers/FirefoxTest.cs
[Ignore]
attributes fromLogsToFile()
andLogsLevel()
testmethods
service.LogPath
property assignment (was commented out)GetLogLocation()
method