Class: Websautotest::Pagepattern::Dashboard

Inherits:
Object
  • Object
show all
Includes:
CommonPageOperation
Defined in:
lib/pagepattern/dashboard_page.rb

Instance Method Summary collapse

Methods included from CommonPageOperation

#current_url, #initialize, #visit_redirect

Instance Method Details

#assertwebsover(iframename) ⇒ Object



5
6
7
8
# File 'lib/pagepattern/dashboard_page.rb', line 5

def assertwebsover(iframename)
    @session.should have_xpath("//div[@id='websover_header']/span[@id='websover_title']")
    @session.find("//div[@id='websover_header']/span[@id='websover_title']").text.should eql(iframename)
end

#selectsite_dropdown(sitename) ⇒ Object



10
11
12
13
14
15
# File 'lib/pagepattern/dashboard_page.rb', line 10

def selectsite_dropdown(sitename)
   @session.within_frame('websover_iframe') do
        @session.find("//div[@id='select_container']").select sitename , :from =>'userID'
        @session.find("//input[@id='submitButton']").click
    end   
end