2012-09-18 29 views

回答

0

您必須撥打selenium.open才能找到與Cookie相同的域中的URL(本例中爲「http:// localhost/sample」)。然後你可以用適當的參數調用selenium.createCookie

+0

TKS Joe編碼器,如果我使用selenium.createCookie之後的selenium.open,使用Firefox或Chrome瀏覽器,但使用IE瀏覽器則不行。爲什麼? –

+0

我不知道,IE很爛。哈哈。只要堅持Selenium文檔,你會沒事的:) –