LucianoGanga / simple-headless-chrome

Simple abstraction to use Chrome as a Headless Browser with Node JS
MIT License
217 stars 50 forks source link

setCookie documentation is wrong #79

Open uuksu opened 7 years ago

uuksu commented 7 years ago

setCookie documentation in README.md says:

Parameters

So this should work: await mainTab.setCookie("cookie", "1", {}, "http://example.com")

It does not. Right syntax seems to be: await mainTab.setCookie("cookie", "1", {url: "http://example.com"})