Example #1
0
 /**
  *    Starts with a fresh browser with no
  *    cookie or any other state information. The
  *    exception is that a default proxy will be
  *    set up if specified in the options.
  *    @access public
  */
 function SimpleBrowser() {
     $this->_user_agent = &$this->_createUserAgent();
     $this->_user_agent->useProxy(
             SimpleTestOptions::getDefaultProxy(),
             SimpleTestOptions::getDefaultProxyUsername(),
             SimpleTestOptions::getDefaultProxyPassword());
     $this->_page = &new SimplePage();
     $this->_history = &$this->_createHistory();
     $this->_ignore_frames = false;
 }
Example #2
0
 /**
  *    Starts with a fresh browser with no
  *    cookie or any other state information. The
  *    exception is that a default proxy will be
  *    set up if specified in the options.
  *    @access public
  */
 function SimpleBrowser()
 {
     $this->_user_agent =& $this->_createUserAgent();
     $this->_user_agent->useProxy(SimpleTestOptions::getDefaultProxy(), SimpleTestOptions::getDefaultProxyUsername(), SimpleTestOptions::getDefaultProxyPassword());
     $this->_page =& new SimplePage();
     $this->_history =& $this->_createHistory();
     $this->_ignore_frames = false;
     $this->_maximum_nested_frames = DEFAULT_MAX_NESTED_FRAMES;
 }