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 verify_home_page_status(self, test_type, value):
     global error_msg
     try:
         self.logger.info('verifying the login status...')
         if test_type == 'positive':
             verifyheadingfield = PageBase.findElement(
                 self, self.homepageheading)
             home_status = PageBase.getText(self, verifyheadingfield)
             if (home_status == value):
                 return (True)
         else:
             return (False)
     except Exception as e:
         e = sys.exc_info()
         return (False, e[1])