-1
如何保存會話ID或cookie,當我使用Selenium 2.0中的HtmlUnitDriver登錄後,需要在登錄後保持登錄狀態。Selenium HtmlUnitDriver保存會話ID或Cookie
如何保存會話ID或cookie,當我使用Selenium 2.0中的HtmlUnitDriver登錄後,需要在登錄後保持登錄狀態。Selenium HtmlUnitDriver保存會話ID或Cookie
首先啓用餅乾:
webClient.getCookieManager().setCookiesEnabled(true);//enable cookies
退房它有一些更多的信息的Cookies和額外的代碼,你可能想看看
什麼是Web客戶端?我相信Selenium和HtmlUnit是混淆的。 – 2015-04-01 22:32:47