Ejemplo n.º 1
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());
 }
Ejemplo n.º 2
0
 /**
  * Perform a click on the login button
  *
  * @return null
  */
 function clickLoginButton()
 {
     $loginButton = $this->driver->byCssSelector(".button > button:nth-child(1)");
     $loginButton->click();
 }