Exemplo n.º 1
0
 public function setUp()
 {
     // Choose one of the following
     // For tests running at Sauce Labs
     //     $this->driver = WebDriver_Driver::InitAtSauce("my-sauce-username", "my-sauce-api-key", "WINDOWS", "firefox", "3.6");
     //     $sauce_job_name = get_class($this);
     //     $this->driver->set_sauce_context("name", $sauce_job_name);
     // For a mock driver (for debugging)
     //     $this->driver = new WebDriver_MockDriver();
     //     define('kFestDebug', true);
     // For a local driver
     $this->driver = WebDriver_Driver::InitAtLocal("4444", "firefox");
 }
Exemplo n.º 2
0
 public function setUp()
 {
     // If you want to set preferences in your Firefox profile
     $fp = new WebDriver_FirefoxProfile();
     $fp->set_preference("capability.policy.default.HTMLDocument.compatMode", "allAccess");
     // Choose one of the following
     // For tests running at Sauce Labs
     //     $this->driver = WebDriver_Driver::InitAtSauce(
     //       "my-sauce-username",
     //       "my-sauce-api-key",
     //       "WINDOWS",
     //       "firefox",
     //       "10",
     //       array(
     //         'firefox_profile' => $fp->get_profile()
     //       ));
     //     $sauce_job_name = get_class($this);
     //     $this->driver->set_sauce_context("name", $sauce_job_name);
     // For a mock driver (for debugging)
     //     $this->driver = new WebDriver_MockDriver();
     //     define('kFestDebug', true);
     // For a local driver
     $this->driver = WebDriver_Driver::InitAtLocal("4444", "firefox");
 }