function __construct($driver) { $this->driver = $driver; if ($this->module_name) { $this->driver->url("fresh_install/"); } }
/** * 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); }
/** * 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()); }
/** * 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\";}"; }
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' ); }