[wtr-general] Re: Delete cookies in Firewatir

2009-11-19 Thread aidy lewis
Angrez et al It is unlikely that we would want to get all cookies, but get cookies for a particular uri. browser.get_cookies('www.google.com') How about remove_cookies(:domain = 'domain') remove_cookies(:all) add_cookie is good. Aidy 2009/11/19 Angrez Singh ang...@gmail.com: Bret proposed

[wtr-general] Re: Delete cookies in Firewatir

2009-11-19 Thread aidy lewis
How about this browser.get_cookies(:domain = 'domain') browser.get_cookies(:all) browser.remove_cookies(:domain = 'domain') remove_cookies(:all) ? Aidy 2009/11/19 aidy lewis aidy.le...@googlemail.com: Angrez et al It is unlikely that we would want to get all cookies, but get cookies for

[wtr-general] Re: Delete cookies in Firewatir

2009-11-19 Thread b...@pettichord.com
I suggest that this conversation move to the watir-development list. We need need to ensure that Jari and the developers for other Watir implementations are in the loop, and I'm not sure that they watch everything here. Bret On Nov 19, 6:11 am, Tony ynot...@gmail.com wrote: Hi Aidy, Could

[wtr-general] Re: Delete cookies in Firewatir

2009-11-18 Thread Angrez Singh
How about this: browser.set_cookie(:name = name, :value = value) browser.delete_cookie(:name = name) browser.delete_all_cookies() I want these methods to be with Browser as cookies are related to browser. Thoughts? - Angrez On Wed, Nov 18, 2009 at 12:28 AM, Bret Pettichord

[wtr-general] Re: Delete cookies in Firewatir

2009-11-18 Thread aidy lewis
Angrez, Sounds good. Would you like me to write them? I can either push them to my fork or just email them to you. I will be just doing the FireWatir ones, as I am unsure on what method we should use for Watir. Will start with and include tests. Aidy 2009/11/18 Angrez Singh

[wtr-general] Re: Delete cookies in Firewatir

2009-11-18 Thread Angrez Singh
Aidy, You can go ahead and write it. I'll write the corresponding methods in Watir. -Angrez On Wed, Nov 18, 2009 at 3:56 PM, aidy lewis aidy.le...@googlemail.comwrote: Angrez, Sounds good. Would you like me to write them? I can either push them to my fork or just email them to you. I

[wtr-general] Re: Delete cookies in Firewatir

2009-11-18 Thread Ethan
That seems to be lacking the URI to set the cookie on. Would the method just infer that from the current location of the browser, or should that be be configurable by the user? On Wed, Nov 18, 2009 at 07:15, Angrez Singh ang...@gmail.com wrote: Aidy, You can go ahead and write it. I'll write

[wtr-general] Re: Delete cookies in Firewatir

2009-11-18 Thread Angrez Singh
Bret proposed the following syntax or method names via Google Wave, so we should stick to this: Browser#cookies (get cookies as ruby array of hashes) Browser#add_cookie(opts) where opts is a hash of :name, :value, :path, :secure and :name/:value will raise ArgumentError if not supplied

[wtr-general] Re: Delete cookies in Firewatir

2009-11-17 Thread Angrez Singh
:) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.comwrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was

[wtr-general] Re: Delete cookies in Firewatir

2009-11-17 Thread aidy lewis
Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh ang...@gmail.com: :) correct thats the approach. Was discussing with Bret the syntax, method names so that

[wtr-general] Re: Delete cookies in Firewatir

2009-11-17 Thread Angrez Singh
thats what I am waiting for method names. Let me discuss with Bret and will let you know you can go ahead and put these methods there. - Angrez On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis aidy.le...@googlemail.comwrote: Are you going to take this up then, otherwise I can do it, if you

[wtr-general] Re: Delete cookies in Firewatir

2009-11-17 Thread aidy lewis
have you seen this by Matt http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment ? Aidy 2009/11/17 Angrez Singh ang...@gmail.com: thats what I am waiting for method names. Let me discuss with Bret and will let you know you can go ahead and put these