Inheritance: extends SeleniumAppModel
Exemplo n.º 1
0
 function __construct($driver)
 {
     $this->driver = $driver;
     if ($this->module_name) {
         $this->driver->url("fresh_install/");
     }
 }
Exemplo n.º 2
0
 /**
  * Perform the login action with the login et password params
  *
  * @param string $login  User login
  * @param string $passwd User password
  *
  * @return ConsultationsPage
  */
 function doLogin($login, $passwd)
 {
     $this->setLogin($login);
     $this->setPasswd($passwd);
     $this->clickLoginButton();
     if (!isset($login) || !isset($passwd)) {
         $this->driver->acceptAlert();
     }
     return new HomePage($this->driver);
 }
Exemplo n.º 3
0
 /**
  * Get info message after an object creation
  *
  * @return null|string
  */
 public function getInfoMessage()
 {
     $this->driver->waitUntil(function () {
         return $this->driver->byCssSelector("#systemMsg .info")->text() != null;
     }, 5000);
     return utf8_decode($this->driver->byCssSelector("#systemMsg .info")->text());
 }
Exemplo n.º 4
0
 /**
  * Standard setup method.
  *
  * @return void
  * @access public
  */
 public function setUp()
 {
     parent::setUp();
     // Set up Javascript to be used throughout the test:
     $this->_lightboxVisibleJS = "{selenium.browserbot.getCurrentWindow()" . ".document.getElementById('popupDetails').style.display == \"block\";}";
 }
Exemplo n.º 5
0
 function doLogOut()
 {
     $this->driver->byCssSelectorAndWait(".menu > a:nth-child(7)")->click();
 }
	public function tearDown() {
		parent::tearDown();
		// Clear EmbedTiffTest page for future tests
		$this->open( $this->getUrl() . '/index.php?title=Image:'
			. $this->image . '&action=edit' );
		$this->type( 'wpTextbox1', '' );
		$this->click( 'wpSave' );
	}