<pre><pre lang="c#"> var session = selenium1.driver().Manage().Cookies.AllCookies.ToArray(); TextWriter sw = new StreamWriter("channels/test/" + textBox1.Text+"/"+"cookies.data"); foreach (Cookie cookie in session) { MessageBox.Show(cookie.Name + ":" +cookie.Value +":"+ cookie.Domain+ ":" + cookie.Path + ":" + cookie.Expiry + ":" + cookie.Secure); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)