I\'m trying to push cookies to selenium firefox webdriver stored from previous session, but I got error:
org.openqa.selenium.InvalidCookieDomainException: Do
I guess your situation is you set cookie with driver.manage.addCookie(....) before you get the url with driver.get('http://mydomain').
Cookie can be only add to the request with same domain. When webdriver init, it's request url is `data:` so you cannot add cookie to it. So first make a request to your url then add cookie, then request you url again.