On Fri, Nov 20, 2009 at 10:28 AM, Jari Bakken <[email protected]> wrote: > On Fri, Nov 20, 2009 at 10:59 AM, Angrez Singh <[email protected]> wrote: >> Aidy, >> >> So for getting cookie for a domain we can have something like cookies(domain >> name), so if domain name is supplied it will get cookies only for that >> domain else all the cookies. Let me know if that is fine. >> > > I'm not convinced that getting cookies for one domain needs to be part > of the API. It's not a super-common use case and pretty simple to do > yourself with ruby > > browser.cookies.select { |c| c[:domain] == ".example.com" }
It's also extremely difficult to get any cookies which aren't already visible to the browser on some browsers (Safari springs to mind). That's why Selenium limits you to manipulating only the visible cookies. Simon _______________________________________________ Wtr-development mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-development
