Every time when I run my test first step is log in and than I get to desire page. If run this test often log in operation takes a lot of time.
How can I pass log in
For those that need to set more detailed information on Cookie besides name and value you can use:
Cookie cookie = new Cookie.Builder("name", "value")
.domain(".mydomain.com")
.expiresOn(new Date(2015, 10, 28))
.isHttpOnly(true)
.isSecure(false)
.path("/mypath")
.build();
driver.manage().addCookie(cookie);