public function doFrontEndLogin($user = null, $password = null)
	{
		if (is_null($user))
		{
			$user = $this->config['username'];
		}

		if (is_null($password))
		{
			$password = $this->config['password'];
		}

		$this->debug('I open Joomla Frontend Login Page');
		$this->amOnPage($this->locator->frontEndLoginUrl);
		$this->debug('Fill Username Text Field');
		$this->fillField($this->locator->loginUserName, $user);
		$this->debug('Fill Password Text Field');
		$this->fillField($this->locator->loginPassword, $password);

		// @todo: update login button in joomla login screen to make this xPath more friendly
		$this->debug('I click Login button');
		$this->click($this->locator->loginButton);
		$this->debug('I wait to see Frontend Member Profile Form with the Logout button in the module');

		$this->waitForElement($this->locator->frontEndLoginSuccess, TIMEOUT);
	}
public function doFrontEndLogin($user = null, $password = null)
	{
		if (is_null($user))
		{
			$user = $this->config['username'];
		}

		if (is_null($password))
		{
			$password = $this->config['password'];
		}

		$this->debug('I open Joomla Frontend Login Page');
		$this->amOnPage($this->locator->frontEndLoginUrl);
		$this->debug('Fill Username Text Field');
		$this->fillField($this->locator->loginUserName, $user);
		$this->debug('Fill Password Text Field');
		$this->fillField($this->locator->loginPassword, $password);

		// @todo: update login button in joomla login screen to make this xPath more friendly
		$this->debug('I click Login button');
		$this->click($this->locator->loginButton);
		$this->debug('I wait to see Frontend Member Profile Form with the Logout button in the module');

		$this->waitForElement($this->locator->frontEndLoginSuccess, TIMEOUT);
	}
public function doFrontEndLogin ( $ user = null , $ password = null ) { if ( is_null ( $ user ) ) { $ user = $ this -> config [ 'username' ] ; } if ( is_null ( $ password ) ) { $ password = $ this -> config [ 'password' ] ; } $ this -> debug ( 'I open Joomla Frontend Login Page' ) ; $ this -> amOnPage ( $ this -> locator -> frontEndLoginUrl ) ; $ this -> debug ( 'Fill Username Text Field' ) ; $ this -> fillField ( $ this -> locator -> loginUserName , $ user ) ; $ this -> debug ( 'Fill Password Text Field' ) ; $ this -> fillField ( $ this -> locator -> loginPassword , $ password ) ; // @todo: update login button in joomla login screen to make this xPath more friendly $ this -> debug ( 'I click Login button' ) ; $ this -> click ( $ this -> locator -> loginButton ) ; $ this -> debug ( 'I wait to see Frontend Member Profile Form with the Logout button in the module' ) ; $ this -> waitForElement ( $ this -> locator -> frontEndLoginSuccess , TIMEOUT ) ; }
Function to Do Frontend Login In Joomla!

@param   string|null  $user      Optional username. If not passed the one in acceptance.suite.yml will be used
@param   string|null  $password  Optional password. If not passed the one in acceptance.suite.yml will be used

@return  void

@since   3.0.0
@throws  \Exception
Function to Do Frontend Login In Joomla!