-
Notifications
You must be signed in to change notification settings - Fork 49
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
New methods / extensions - Happy to write them #53
Comments
Hi @luke-hill, thanks for starting this conversation and offering to contribute!
|
Hi there. So So my method is cookie_jar.include?('foo') which looks inside the jar and checks whether (Using #any?), whether there is any cookie with the :name prop cookie_named is the same as above, but using detect to return the first matcher |
OK, then to avoid breaking anyone who is depending on the current behavior of Or, alternatively, we could align the names of the two proposed cookie jar methods to be:
WDYT? |
Sounds great. I'm actually not going to be looking at this for a while. Because I'm off for a few days. I'll copy and paste my monkeypatch file and stuff I've been working on so you can see what I can do / need then I'll adapt / work on things on my return unless some of it has been priorly done
|
Seems like a reasonable start! I'm going to close this issue, but please do open PRs when you get time, I'd be happy to review and help get these ideas merged. ❤️ |
Finding I need the following a lot. I've already written some of them straw man. Asking if you want them uploading to the gem proper and would accept PR's to add them?
Cookie
#to_h
(Caster to enable pushing values back into Selenium readily)#expires
bug fix / extension to permit DateTime expiry values: Update cookie.rb to handle situations when expires is a DateTime object #52CookieJar
#include?
(Boolean checker)#cookie_named
(Detector)The text was updated successfully, but these errors were encountered: