Sha256: 0083767ab1bd26f04d970bdcde373b590791cf25f7503699bd44934fe0d83d32
Contents?: true
Size: 1.3 KB
Versions: 9
Compression:
Stored size: 1.3 KB
Contents
module Demo module Elements class RegistrationPage include RSpec::Core::DSL attr_accessor :tabs, :menu, :dialogs def initialize @tabs = Demo::Elements::Tabs.new @menu = Demo::Elements::Menu.new @dialogs = Demo::Elements::Dialogs.new define_me(:email) { @browser.text_field(:id, 'email') } define_me(:email_error) { @browser.div(:id, 'email_error') } define_me(:password) { @browser.text_field(:id, 'password') } define_me(:password_error) { @browser.div(:id, 'password_error') } define_me(:password) { @browser.text_field(:id, 'password') } define_me(:step_1_div) { @browser.div(:id => 'step_1') } define_me(:step_2_div) { @browser.div(:id => 'step_2') } define_me(:step_1_displayed?) { step_1_div.html.grep(/ui-accordion-content-active/).length > 0 } define_me(:step_2_displayed?) { step_2_div.html.grep(/ui-accordion-content-active/).length > 0 } define_me(:step_navigation_div) { @browser.div(:id, 'step_navigation_left') } define_me(:step_1_next) { step_1_div.link(:title => 'Move on to Step 2') } define_me(:step_2_next) { step_2_div.link(:title => 'Move on to Step 3') } define_me(:step_2_prev) { step_2_div.link(:title => 'Go back to Step 1') } end end end end
Version data entries
9 entries across 9 versions & 1 rubygems