title: How to pass cucumber datatables to sendkeys in steps using typescript?
body: <p>Following is my feature :</p>
  
  <pre><code>Scenario: Login to the website
  And Enter the username and password
  |username |password |
  |testerqp@outlook.com |123456 |
  And I click the 'SignIn' button
  Then I should see 'You have successfully logged in' message
  </code></pre>
  
  <p>I want to write step definition for the step "Enter the username and password" </p>
  
  <pre><code>When(/^Enter the username and password$/, async(table: TableDefinition) =&gt; {     
           await table.rows().forEach(element =&gt; {
           homePage.Username.sendKeys(element);
           homePage.Password.sendKeys(element);
           // });
        });
  </code></pre>
  
  <p>Note: Homepage is my page object and I have declared and identified the username and password fields there.
  <strong>My main concern is how to pass the elements through sendkeys.</strong></p>