Class: Websautotest::Pagepattern::Coreg

Inherits:
Object
  • Object
show all
Includes:
CommonPageOperation
Defined in:
lib/pagepattern/co-reg_page.rb

Instance Method Summary collapse

Methods included from CommonPageOperation

#current_url, #initialize, #visit_redirect

Instance Method Details

#assertpackageindex(*package) ⇒ Object



6
7
8
9
10
# File 'lib/pagepattern/co-reg_page.rb', line 6

def assertpackageindex(*package)
    package.each do |package|
        @session.should have_xpath("//a[contains(@href, 'members.webs.com/premium/checkout') and contains(@href, '#{package}')]")
    end
end

#clicknothanks_goto_sitebuilder(nothankstring) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/pagepattern/co-reg_page.rb', line 12

def clicknothanks_goto_sitebuilder(nothankstring)
    if @session.has_xpath?("//div[@id='left_content']/descendant::*/img[contains(@title,'#{nothankstring}')]")
        @session.find("//div[@id='left_content']/descendant::*/img[contains(@title,'#{nothankstring}')]").click
    elsif @session.has_xpath?("//div[@id='left_content']/descendant::*/span[contains(text(),'#{nothankstring}')]")
        @session.find("//div[@id='left_content']/descendant::*/span[contains(text(),'#{nothankstring}')]").click
    end
    @Sitebuilder=Sitebuilder.new(@session)
end