gemini-testing / gemini

💀💀💀[DEPRECATED] Use hermione
https://github.com/gemini-testing/hermione
MIT License
1.5k stars 149 forks source link

allow to set cookies for capturing #966

Open masi opened 5 years ago

masi commented 5 years ago

The WD protocol allows cookie manipulation: https://www.w3.org/TR/webdriver1/#cookies

Make it possible to mainpulate cookies when calling capture().

Either as third parameter to the capture callback as (actions, elements, cookies):

Or patching the functions into the actions: