Class: OrganizeForums

Inherits:
BasePage
  • Object
show all
Defined in:
lib/sambal-cle/page_objects/forums.rb

Instance Method Summary collapse

Methods inherited from BasePage

basic_page_elements, frame_element

Instance Method Details

#forum(index) ⇒ Object

These are set to so that the user does not have to start the list at zero… TODO: Is there any chance there’s a better way to do this? It’s friggin’ ugly!



162
163
164
# File 'lib/sambal-cle/page_objects/forums.rb', line 162

def forum(index)
  frm.select(:id, "revise:forums:#{index.to_i - 1}:forumIndex")
end

#topic(forumindex, topicindex) ⇒ Object



166
167
168
# File 'lib/sambal-cle/page_objects/forums.rb', line 166

def topic(forumindex, topicindex)
  frm.select(:id, "revise:forums:#{forumindex.to_i - 1}:topics:#{topicindex.to_i - 1}:topicIndex")
end