fysh711426 / UndetectedChromeDriver

GNU General Public License v3.0
166 stars 61 forks source link

How to use Cookies? #24

Open azorkai opened 1 year ago

azorkai commented 1 year ago

Hello,

How can I use cookies?

fysh711426 commented 1 year ago

Add cookies.

driver.GoToUrl("url");

driver.Manage().Cookies.AddCookie(
    new OpenQA.Selenium.Cookie("TestCookie", "TestCookieValue"));

driver.GoToUrl("url");