Example #1
0
    def scrape_sections(self):
        sel = self.selenium

        term_options = sel.get_select_options("id=DERIVED_SAA_CRS_TERM_ALT")

        for option in term_options:
            if not len(term_options) == 1:
                sel.select("id=DERIVED_SAA_CRS_TERM_ALT", "label=%s" % option)
                sel.click("id=DERIVED_SAA_CRS_SSR_PB_GO$92$")
                sel.wait_for_page_to_load(self.timeout_milliseconds)

            self.current_term = SolusModels.term_index_by_key(option)
            self.scrape_term()
Example #2
0
 def scrape_sections(self):
     sel = self.selenium
     
     term_options = sel.get_select_options("id=DERIVED_SAA_CRS_TERM_ALT")
     
     for option in term_options:
         if not len(term_options) == 1:
             sel.select("id=DERIVED_SAA_CRS_TERM_ALT", "label=%s" % option)
             sel.click("id=DERIVED_SAA_CRS_SSR_PB_GO$92$")
             sel.wait_for_page_to_load(self.timeout_milliseconds)
         
         
         self.current_term = SolusModels.term_index_by_key(option)
         self.scrape_term()