Slide 34
Slide 34 text
Cucumber.js step definitions
this.Given(/^I
am
on
the
home
page$/,
function
(callback)
{
this.visit("/",
callback);
});
this.When(/^I
enter
"([^"]*)"
in
the
"([^"]*)"
field$/,
function(val,
fieldSelector,
callback)
{
this.browser.fill(fieldSelector,
val,
callback);
});