something akin to:
special 'Login' do
step 'Username', :enter, ENV[:username]
step 'Password', :enter, ENV[:password]
step 'Sign In', :click
end
'special' would reference already defined objects within the page and perform the method call with optional parameters in sequence. The outside method call would look something like
PAGE.Login.do
something akin to:
special 'Login' do
step 'Username', :enter, ENV[:username]
step 'Password', :enter, ENV[:password]
step 'Sign In', :click
end
'special' would reference already defined objects within the page and perform the method call with optional parameters in sequence. The outside method call would look something like
PAGE.Login.do