Parsing Gherkin Tables

Learn how to parse Gherkin tables using the Gherkin class.

We'll cover the following

Parsing Gherkin data tables

We will now work to parse Gherkin data tables, which will be the most substantial structure we’ve parsed. It’s, in some ways, the most difficult to parse out of all of the different Gherkin elements. A Gherkin data table looks similar to a Markdown table, and each line starts and ends with a vertical pipe character, with each column also separated by a pipe character:

Get hands-on with 1200+ tech skills courses.