Ejemplo n.º 1
0
 def verify_ui_page(self, test_type, name):
     global error_msg
     try:
         self.logger.info('Verifying the ui shifting page status..')
         if test_type == 'positive':                
             shift_page_view = PageBase.findElement(self, self.shiftheading)
             verifyText = PageBase.getText(self, shift_page_view)
             if(name == verifyText and PageBase.elementIsDispalyed(self, shift_page_view)):
                 return (True)
         else:                           
             return (False)   
     except Exception as e:
         e= sys.exc_info()                          
         return (e[1]) 
Ejemplo n.º 2
0
 def verify_added_elements(self, test_type, name):
     global error_msg
     try:
         self.logger.info('Verifying the Added Elements status..')
         if test_type == 'positive':                
             added_elements_view = PageBase.findElement(self, self.addedElements)
             verifyText = PageBase.getText(self, added_elements_view)
             if(name in verifyText and PageBase.elementIsDispalyed(self, added_elements_view)):
                 return (True)
         else:                           
             return (False)   
     except Exception as e:
         e= sys.exc_info()                          
         return (e[1]) 
Ejemplo n.º 3
0
 def check_element_displayed(self):
     elemList = uiAlignmentPage.check_ui_elements(self)
     for elem in elemList(len(elemList)):
         status= PageBase.elementIsDispalyed(self, elem)
         if (status == True):
             self.logger.info('UI Elements are displayed properly')