Skip to content

Fill fields with faker

cedric lombardot edited this page Jun 1, 2016 · 1 revision

When you fill fields perheaps you would set generated datas

Given I fill "email" field with "@('internet', 'email', 'memorization_key')"

The "@" at start mean you want use faker to generate the data.

Arguments are @(category, type, memorisation_key)

category and type are used to call faker function in the example will call faker.internet.email()

The memorization_key is used to retrieve datas after for example if you fill a field and want to check value is visible on the next screen

Clone this wiki locally