This code only works in * googlechrome.
$this->browserBot->setCommandLineFlags('commandLineFlags=--disable-web-security'); $this->browserBot->setBrowser('*googlechrome'); $this->browserBot->setHost('localhost'); $this->browserBot->setPort(4444); $this->browserBot->setBrowserUrl('http://example.com'); $this->browserBot->start(); $this->browserBot->createCookie('foo=bar', 'path=/; domain=.example.com'); $this->browserBot->open('http://example.com/print_cookie.php');
In * firefox and * iexplore only this works:
$this->browserBot->start(); $this->browserBot->open('http://example.com/blank_page.html'); $this->browserBot->createCookie('foo=bar', 'path=/; domain=.example.com'); $this->browserBot->open('http://example.com/print_cookie.php');
Can I create a cookie before open () (without redundantly calling open ()) in * firefox, etc.?
Mikhail
source share