Esempio n. 1
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$driver = new Driver_Phantomjs();
     self::$driver->base_url('https://85b5d31b11244c8d6302-fabb5009fe9cc97c5f42aa7fac8fcd02.ssl.cf3.rackcdn.com');
     self::$driver->visit('/remote-form.html');
 }
Esempio n. 2
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$driver = new Driver_Selenium();
     self::$driver->base_url('http://6ca1671dbfe9477b14ce-fabb5009fe9cc97c5f42aa7fac8fcd02.r26.cf3.rackcdn.com');
     self::$driver->visit('/remote-form.html');
 }
Esempio n. 3
0
 public function setUp()
 {
     parent::setUp();
     $driver = $this->getMockBuilder('Openbuildings\\Spiderling\\Driver_Simple')->setMethods(array('get', 'post'))->getMock();
     $html_content = file_get_contents(TESTVIEWS . 'index.html');
     $driver->content($html_content);
     $this->page = $driver->page();
 }
Esempio n. 4
0
 public function setUp()
 {
     parent::setUp();
     $this->driver = $this->getMock('Openbuildings\\Spiderling\\Driver_Simple', array('get', 'post', 'confirm', 'execute', 'screenshot', 'move_to', 'drop_files'));
     $this->driver->default_wait_time = 1;
     $html_content = file_get_contents(TESTVIEWS . 'index.html');
     $this->driver->content($html_content);
     $this->node = new Node($this->driver);
 }
Esempio n. 5
0
 public function setUp()
 {
     parent::setUp();
     $this->driver = new Driver_Simple();
     $request_factory = $this->getMock('Openbuildings\\Spiderling\\Driver_Simple_RequestFactory_HTTP');
     $this->driver->request_factory($request_factory);
     $html_content = file_get_contents(TESTVIEWS . 'form.html');
     $this->driver->content($html_content);
 }