Sha256: a89cb5174dd552a602b826405f9dbb1d8b3f2384aa606f0764ed6341391a6c5a
Contents?: true
Size: 555 Bytes
Versions: 9
Compression:
Stored size: 555 Bytes
Contents
module Demo class RegistrationPage include RSpec::Core::DSL attr_reader :elements def initialize @elements = Demo::Elements::RegistrationPage.new end def step_1(params={}) params[:submit] ||= 'true' params[:submit] = params[:submit].to_bool params[:email] ||= '' params[:password] ||= '' @elements.email.set(params[:email]) if params[:email] != '' @elements.password.set(params[:password]) if params[:password] != '' @elements.step_1_next.click if params[:submit] end end end
Version data entries
9 entries across 9 versions & 1 rubygems