so, does
try { if ("ilou_10_0".equals(selenium.getCookie())) break; }
catch (Exception e) {}
throw an exception? or does is
"ilou_10_0".equals(selenium.getCookie())
just evaluated as false?
I only work with selenium RC, but there the call .getCookie return a
string in a format like:
"JSESSIONID=76g9797gzv7vi".
So I think that this could be the source of your problem. good luck :)
> On Wed, Jul 21, 2010 at 8:08 PM, DEEPAK BHATIA <
toreachdee...@gmail.com>wrote:
>
> > All the best, actually I am not using cookies in my web application. But I
> > have used IDE and RC. Sorry I am not able to help :-)
>
> > On Wed, Jul 21, 2010 at 2:43 PM,
tal.kf...@gmail.com <
talkf...@gmail.com
> > > wrote:
>
> >> im the same one you talked to befor. you told me to write this post to
> >> selenium IDE users . thats what i did :)
>
> >> On Wed, Jul 21, 2010 at 11:15 AM, DEEPAK BHATIA <
> >>> On Wed, Jul 21, 2010 at 12:42 PM, tal <
talkf...@gmail.com> wrote:
>
> >>>> hi,
>
> >>>> im trying to perform a test where in the end of the test i chetch the
> >>>> cookies on the browser.
>
> >>>> this is the test:
>
> >>>> selenium.open("Open a site");
> >>>> selenium.click("link=click On link");//when clicking on this link a
> >>>> cookie is set on the browser
> >>>> selenium.getCookieByName("cookie name");//find the cookie by her name
> >>>> for (int second = 0;; second++) {
> >>>> if (second >= 60) fail("timeout");
> >>>> try { if ("ilou_10_0".equals(selenium.getCookie())) break; }
> >>>> catch (Exception e) {}
> >>>> Thread.sleep(1000);
>
> >>>> the test never get the cookie( iv used all the cookei methods in the
> >>>> IDE) althogh the cookie does exist in the browser.
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "Selenium Users" group.
> >>>> To post to this group, send email to
seleniu...@googlegroups.com.
> >>>> To unsubscribe from this group, send email to
> >>>>
selenium-user...@googlegroups.com<
selenium-users%2Bunsu...@googlegroups.com>
> >>>> .
> >>>
selenium-user...@googlegroups.com<
selenium-users%2Bunsu...@googlegroups.com>
> >>> .
> >>
selenium-user...@googlegroups.com<
selenium-users%2Bunsu...@googlegroups.com>
> >> .
> >
selenium-user...@googlegroups.com<
selenium-users%2Bunsu...@googlegroups.com>
> > .