Module: ListProjects

Includes:
PageObject
Included in:
ExploreAll, ExploreResearch
Defined in:
lib/sakai-oae-test-api/widgets.rb

Overview

Methods related to lists of Research Projects

Instance Method Summary collapse

Methods included from PageObject

#method_missing, #name_li, #name_link

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageObject

Instance Method Details

#open_research(name) ⇒ Object Also known as: view_research, open_project

Clicks the specified Link (will open any link that matches the supplied text, but it’s made for clicking on a Research item listed on the page because it will instantiate the ResearchIntro class).



466
467
468
469
470
471
472
# File 'lib/sakai-oae-test-api/widgets.rb', line 466

def open_research(name)
  name_link(name).click
  sleep 1
  self.wait_for_ajax
  self.execute_script("$('#joinrequestbuttons_widget').css({display: 'block'})")
  ResearchIntro.new @browser
end