Class: Gradebook2
- Defined in:
- lib/sakai-cle-test-api/page_objects/gradebook2.rb
Instance Method Summary collapse
-
#gradebook_items ⇒ Object
Returns an array of names of Gradebook items.
Methods inherited from BasePage
basic_page_elements, frame_element
Methods inherited from PageMaker
element, expected_element, expected_title, #initialize, #method_missing, page_url
Constructor Details
This class inherits a constructor from PageMaker
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageMaker
Instance Method Details
#gradebook_items ⇒ Object
Returns an array of names of Gradebook items
7 8 9 10 11 12 13 14 15 |
# File 'lib/sakai-cle-test-api/page_objects/gradebook2.rb', line 7 def gradebook_items items = [] frm.div(:class=>"x-grid3-scroller").spans.each do |span| if span.class_name =~ /^x-tree3-node-text/ items << span.text end end return items end |