/**
  * @When /^I create an account$/
  */
 public function iCreateAnAccount()
 {
     try {
         //go to the registration page, we use http://demo.magentocommerce.com/ as the homepage
         $this->visit('/customer/account/create/');
         //we generate a random mailinator email that starts with FIRST_NAME
         self::$email = uniqid(self::FIRST_NAME) . '@mailinator.com';
         //complete the registration form
         $this->fillField('firstname', self::FIRST_NAME);
         $this->fillField('lastname', self::LAST_NAME);
         $this->fillField('email', self::$email);
         $this->fillField('password', self::PASSWORD);
         $this->fillField('confirmation', self::PASSWORD);
         $this->pressButton('Register');
         //for testing only
         echo "Email address used for registration: " . self::$email . "\n";
     } catch (Exception $e) {
         //we will fail this step if we have any exceptions
         throw new Exception("Something went wrong: " . $e->getMessage());
     }
 }