title: How to dynamize cucumber value and pass that into the login page
body: <p>How to dynamize cucumber value and pass that into the login page, for example:</p>
  
  <p>If I use Adam in the cucumber scenario then it should automatically use adam login details and other information and if i use another name it should use that person's information. So i do not have to manually enter it in every step defination. How Can i achieve it?</p>
  
  <pre><code>Scenario: Add an item to shopping bag to place the order using mastercard
          Given that "Adam" is logged in to his account
           When he searches and adds an item from "men" section to his shopping bag
           Then he can place the order
  
  
  export class LoginUser implements Task {
  
    static called(name: string): LoginUser {
      return new LoginUser(name);
  }
  
    performAs(actor: PerformsTasks): PromiseLike&lt;void&gt; {
      return actor.attemptsTo(
        Click.on(homePageElementsMap.lnk_login),
        Enter.theValue('test@test.com').into(loginPageElementsMap.txt_login_email),
        Enter.theValue('password111').into(loginPageElementsMap.txt_login_pwd),
        Click.on(loginPageElementsMap.btn_login)
      );
    }
  
    constructor(private name: string) {
    }
  }
  </code></pre>