Как получить входные данные из файла объекта в определении шага - PullRequest
0 голосов
/ 13 сентября 2018

FeatureFile

Feature: Shopper can add an item to their Grocery List
@kk
Scenario: Mutate multiple User Skills at the same time
Given I fill the customer details
| name | department |
| john | retail |
| mary | sales |
| ed | science |

Файл StepDefinition

Given(/^I fill the customer details$/, function (data) {
console.log("data----"+data)
console.log('table data: ', data.hashes());
done();
}); 

как получить данные таблиц данных в определении шага определения шаганаписано в JavaScript Огурец-webdriverio

...