Answer the question
In order to leave comments, you need to log in
How to send cookie to facebook/php-webdriver?
Hi,
I'm using facebook/php-webdriver
and everything is fine until I get to adding cookies.
Standard example https://github.com/facebook/php-webdriver/blob/com...
$cookie = new Cookie('cookie_name', 'cookie_value');
$driver->manage()->addCookie($cookie);
Answer the question
In order to leave comments, you need to log in
Now I read the question-answer https://github.com/facebook/php-webdriver/issues/401 and they write there that cookies can only be set for an open domain. And it's not cool.
Solved my problem myself.
By using custom profile substitution.
$options->addArguments(array('user-data-dir=/chrome/temp_profile'));
Does such a Cookie class even exist in the library (I didn't find it)?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question