parameters: (self,driver,id,screenFileList,isError=False)
return_statement: return result, screenFileList
docstring: 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:
docstring_summary: Save current page as a screenshot.
docstring_tokens: Save current page as a screenshot .
function: 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
function_tokens: 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