Class: GroupsPage

Inherits:
Object
  • Object
show all
Includes:
Capybara::DSL, NavigationBar
Defined in:
pages/GroupsPage.rb

Instance Method Summary collapse

Methods included from NavigationBar

#go_to_home, select_from_menuName_menu, select_menu

Constructor Details

#initializeGroupsPage

Returns a new instance of GroupsPage.


5
6
7
# File 'pages/GroupsPage.rb', line 5

def initialize
  super
end

Instance Method Details

#create_new_groupObject


9
10
11
# File 'pages/GroupsPage.rb', line 9

def create_new_group
  click_link('New Group')
end

#find_group(group) ⇒ Object


13
14
15
# File 'pages/GroupsPage.rb', line 13

def find_group(group)
  find(:xpath,".//td[contains(text(),'#{group}')]")
end

#verify_group(group) ⇒ Object


17
18
19
# File 'pages/GroupsPage.rb', line 17

def verify_group(group)
  find(:xpath, ".//*[@class='js-click-row']//*[@class='span4'][contains(text(),'#{group}')]")
end