macaca icon indicating copy to clipboard operation
macaca copied to clipboard

macaca测试web端,怎么加载cookie?

Open wynanwong opened this issue 9 years ago • 1 comments

由于网站登录需要验证码,所以只能通过cookie方式登录。macaca测试web端,怎么加载cookie?

wynanwong avatar May 03 '17 09:05 wynanwong

setCookie(cookie, cb) -> cb(err)
cookie example:
{name:'fruit', value:'apple'}
Optional cookie fields:
path, domain, secure, expiry

Refer here for more help https://github.com/macacajs/macaca-wd/blob/master/wd/doc/api.md

dharmakrish6 avatar May 03 '17 09:05 dharmakrish6