(self,driver,id,screenFileList,isError=False)
return result, screenFileList
Save current page as a screenshot.

        :param driver:
        :param id:  case id.
        :param screenFileList:  screenshot file list for this case.
        :param isError:  screenshot type, error or normal.
        :return:
Save current page as a screenshot.
Save current page as a screenshot .
def screenshot(self,driver,id,screenFileList,isError=False):
        """
        Save current page as a screenshot.

        :param driver:
        :param id:  case id.
        :param screenFileList:  screenshot file list for this case.
        :param isError:  screenshot type, error or normal.
        :return:
        """
        result = '2'
        if isError:
            fileName, fileName1 = util.util().screenshot('error', id)
        else:
            fileName, fileName1 = util.util().screenshot('normal', id)
        log.log().logger.info(fileName)
        driver.save_screenshot(fileName)
        screenFileList.append(fileName1)
        if not isError:
            result = '1'
        return result, screenFileList
def screenshot ( self , driver , id , screenFileList , isError = False ) : result = '2' if isError : fileName , fileName1 = util . util ( ) . screenshot ( 'error' , id ) else : fileName , fileName1 = util . util ( ) . screenshot ( 'normal' , id ) log . log ( ) . logger . info ( fileName ) driver . save_screenshot ( fileName ) screenFileList . append ( fileName1 ) if not isError : result = '1' return result , screenFileList