Skip to content

Conversation

@luke-hill
Copy link
Contributor

@luke-hill luke-hill commented Dec 3, 2024

User description

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

PR Type

documentation


Description

  • Updated the documentation for the cookie_named method in the Selenium WebDriver Ruby library.
  • Clarified that the method returns a Hash and throws a NoSuchCookieError if the cookie is not found.

Changes walkthrough 📝

Relevant files
Documentation
manager.rb
Update return type documentation for `cookie_named` method

rb/lib/selenium/webdriver/common/manager.rb

  • Updated the return type documentation for the cookie_named method.
  • Changed the return type from [Hash, nil] to [Hash].
  • +1/-1     

    💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

    @luke-hill luke-hill merged commit ce7448b into trunk Dec 3, 2024
    @luke-hill luke-hill deleted the refactor/rb-cookie-notes branch December 3, 2024 08:46
    @qodo-merge-pro
    Copy link
    Contributor

    qodo-merge-pro bot commented Dec 3, 2024

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ Recommended focus areas for review

    Documentation Accuracy
    The updated documentation removes the 'nil' from the return type, but it should be verified if the method can actually never return nil. The implementation should be checked to confirm this change is accurate.

    @qodo-merge-pro
    Copy link
    Contributor

    qodo-merge-pro bot commented Dec 3, 2024

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    2 participants