Search This Blog

Subscribe:

Tuesday, September 7, 2010

How to create selenium cookies

create cookie as:

selenium.createCookie("name=cookieone", "path=/");
selenium.createCookie("name=cookietwo", "max_age=60");

display it as:
String cook1=selenium.getCookie();
System.out.println("cookie"+cook1);

delete it:
selenium.deleteAllVisibleCookies();

0 comments:

Post a Comment