def test_t_c_search_download_extended_search_tab(self):
        
        self.driver.get(self.base_url + "/search.php?extended")


        try: self.assertEqual("SAMATE Reference Dataset", self.driver.title)
        except AssertionError as e: self.verificationErrors.append(" Wrong title on page %s" %(self.base_url + "/search.php?extended"))

        common_ui_tests.testSRDBanner(self, self.driver, self.verificationErrors)
        common_ui_tests.testSRDMenu(self, self.driver, self.verificationErrors)
        common_ui_tests.testFooter(self, self.driver, self.verificationErrors)
        common_ui_tests.testTestDownloadMenu(self, self.driver, self.verificationErrors)
        
        try: self.assertEqual("Number (Test case ID):", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div/label/span/strong").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Number (Test case ID):' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Description contains:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[2]/label/span/strong").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Description contains:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Author:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[3]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Author:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Contributor:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[4]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Contributor:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Bad / Good / Mixed:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[5]/label/span/acronym").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Bad / Good / Mixed:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Language:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[6]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Language:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Type of Artifact:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[7]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Type of Artifact:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Status:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[8]/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Status' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Weakness:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[9]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Weakness' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Code complexity:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[10]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Code complexity' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Query Date:\n(Format: M/d/Y)\nYou can use the calendar (next icon).", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[11]/fieldset/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Query Date' not found on page %s" %(self.base_url + "/search.php?extended"))
    def test_t_c_search_download_source_code_search(self):
        
        self.driver.get(self.base_url + "/search.php?code")
        
        try: self.assertEqual("SAMATE Reference Dataset", self.driver.title)
        except AssertionError as e: self.verificationErrors.append(" Wrong title on page %s" %(self.base_url + "/search.php?code"))

        common_ui_tests.testSRDBanner(self, self.driver, self.verificationErrors)
        common_ui_tests.testSRDMenu(self, self.driver, self.verificationErrors)
        common_ui_tests.testFooter(self, self.driver, self.verificationErrors)
        common_ui_tests.testTestDownloadMenu(self, self.driver, self.verificationErrors)
       
        try: self.assertEqual("File contains:", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'File contains:' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("File name:", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[2]/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'File name:' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("File size (bytes):", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[3]/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'File size (bytes):' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("Number of files:", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[4]/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Number of files:' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("Exact", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div/acronym").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Exact' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("Contains", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div/acronym[2]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Contains' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("Regex", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[2]/acronym").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Regex' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("min", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[3]/span[2]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'min' for 'File size' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("max", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[3]/span[3]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'max' for 'File size' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("min", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[4]/span[2]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'min' for 'Number of files' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("max", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[4]/span[3]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'max' for 'Number of files' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("Search in source code engine", self.driver.find_element_by_xpath("//div[@id='info_search_code']/h2").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Search in source code engine' not found on page %s" %(self.base_url + "/search.php?code"))