I am currently utilizing the protractor-cucumber-framework
Below is the feature file
Feature: welcome to protractor cucumber
Scenario Outline: DataTable
Given I am learning
Then I print the following table
Examples:
| First | Middle |
| qwerty | xyz |
Within the step definition file, my intention was to display the table data.
Given(/^I am learning$/, async () => {
console.log("I am learning");
});
Then(/^I print the following table$/, (table: TableDefinition) => {
const tableData = table.rows();
console.log(tableData[0][0]);
});
However, I encountered the following error
TypeError: table.rows is not a function
at World.(anonymous) (/.../Protr_cucumber/stepDef/Sample_stepDef.ts:9:29)