I am trying to send cookies to phantomjs while starting the driver
phanton.add_cookie({})
works.
I want to keep a list of cookies in a file and pass them as arguments while launching phantomjs
I found that webdriver.PhantomJS(service_args=['--cookies-file=/tmp/ph_cook.txt'])
would add a given txt
file at launch.
The problem is I do not know what format this txt file should be of. I tried using a map with key value pair, but no gain.