[dotnet] [bidi] Added missing GenericLogEntry log entry type in Script module#15591
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
There was a problem hiding this comment.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
dotnet/src/webdriver/BiDi/Modules/Log/LogEntry.cs:36
- [nitpick] The parameter name 'Type' in GenericLogEntry may be easily confused with C# type metadata. Consider renaming it to 'logType' or 'entryType' for improved clarity.
public record GenericLogEntry(BiDi BiDi, string Type, Level Level, Script.Source Source, string Text, DateTimeOffset Timestamp)
User description
https://w3c.github.io/webdriver-bidi/#types-log-logentry
🔗 Related Issues
💥 What does this PR do?
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Added support for
GenericLogEntryin BiDi log module.Updated
LogEntryConverterto handle unrecognized log types.Introduced
GenericLogEntryrecord as a fallback log entry type.Changes walkthrough 📝
LogEntryConverter.cs
Enhance LogEntryConverter with fallback deserializationdotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/LogEntryConverter.cs
LogEntryConverterto deserialize unrecognized log types.GenericLogEntryfor unknown log entry types.LogEntry.cs
Add GenericLogEntry record for fallback handlingdotnet/src/webdriver/BiDi/Modules/Log/LogEntry.cs
GenericLogEntryrecord for fallback log entries.