简体   繁体   中英

How do I load my manually generated cookies when I run Watir with Chromium?

I want all the cookies I have when I open the browser manually. How do I load my manually generated cookies when I run Watir with Chromium?

You have to add them one at a time, and you just have to make sure that the browser is on the same domain as the cookie you are adding. Check out Watir's Cookie documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM