Example #1
0
 /**
  * Loads a specific driver for the specified browser
  *
  * @param array $browser Defines what kind of driver, for a what browser will be loaded
  *
  * @return Mage_Selenium_Driver
  */
 protected function getDriver(array $browser)
 {
     if (!empty($browser)) {
         $driver = $this->_testConfig->addDriverConnection($browser);
         $driver->setTestCase($this);
         $driver->setTestId($this->testId);
         $this->drivers[] = $driver;
         return $driver;
     }
 }