WebDriver.Options[1]. However, this suffers from the same issue.
> selenium.getCookieByName("CookieName");
>
> Not sure about webDriver though...
>
> On Apr 21, 1:27 am, Stephen Day <
stevv...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I have a need to check the status of requests fired off tothird
> > parties through various methods (ajax requests, img loads, etc.).
> > Generally, I need to do this by confirming that the propercookiewas
> > dropped. During my evaluation of the Selenium platform, I have been
> > using the java webdriver api:
>
> > WebDriver driver = new FirefoxDriver();
> > String someURL = ...;
> > try {
>
> > driver.get(someURL);
>
> > Set<Cookie> cookies = driver.manage().getCookies();
> > System.out.println(cookies);
>
> > } finally {
> > driver.quit();
> > }
>
> > When I set "someURL" to a test page that includesthirdpartycookies
> > (set via ajax, imgs or scripts), they are not returned by the
> > getCookies function. I do understand the security model to limit
> > access to cookies in a standard browsing scenario, but in a test
> > scenario, it seems that one should have access to these.
>