I cannot find how to start phantomjs with command line options like --cookies-file=/path/to/cookies.txt and others ...
I tried driver = webdriver.PhantomJS('--cookies-file=/tmp/ph_cook.txt') , but nothing.
For an unknown reason add_cookie does not work to log.
I tried to run phantomjs as follows:
driver = webdriver.PhantomJS(executable_path = "phantomjs --cookies-file=/tmp/ph_cook.txt --webdriver")
but getting an error:
raise WebDriverException("Unable to start phantomjs with ghostdriver.", e) selenium.common.exceptions.WebDriverException: Message: Unable to start phantomjs with ghost driver.
source share