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();

No comments:

Post a Comment

Post a Comment