original_string: 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);
  	}
code: 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);
  	}
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Function to Do Frontend Login In Joomla!