SetCookie package:webdriver

Set a cookie. If the cookie path is not specified, it will default to "/". Likewise, if the domain is omitted, it will default to the current page's domain.
A command to set a cookie’s value could not be satisfied.