Class: OrganizeForums
- Defined in:
- lib/sambal-cle/page_objects/forums.rb
Instance Method Summary collapse
-
#forum(index) ⇒ Object
These are set to so that the user does not have to start the list at zero…
- #topic(forumindex, topicindex) ⇒ Object
Methods inherited from BasePage
basic_page_elements, button, damballa, frame_element, link
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!
155 156 157 |
# File 'lib/sambal-cle/page_objects/forums.rb', line 155 def forum(index) frm.select(:id, "revise:forums:#{index.to_i - 1}:forumIndex") end |
#topic(forumindex, topicindex) ⇒ Object
159 160 161 |
# File 'lib/sambal-cle/page_objects/forums.rb', line 159 def topic(forumindex, topicindex) frm.select(:id, "revise:forums:#{forumindex.to_i - 1}:topics:#{topicindex.to_i - 1}:topicIndex") end |