コード例 #1
0
class Test(unittest.TestCase, MarketsDataPage, TableContent):


    def setUp(self):
        self.browser = webdriver.Firefox()
        self.page = MarketsDataPage()
        self.page.open(self.browser)
        
        self.xpath = XPaths


    def tearDown(self):
        self.browser.quit()
        
    
    def test_asmoke(self):
                
        elements_names = self.page.get_elements_text(self.xpath.all_sections_paths)
        print elements_names
        #TODO add check for all sections 
        
        sectors_dropdown = Select(self.browser.find_element_by_xpath(self.xpath.select_sectors_industries))
#        print sectors_dropdown.options
        print [option.text for option in sectors_dropdown.options]
コード例 #2
0
 def setUp(self):
     self.browser = webdriver.Firefox()
     self.page = MarketsDataPage()
     self.page.open(self.browser)
     
     self.xpath = XPaths