|  | @@ -214,7 +214,7 @@ class UATRunnerCommand():
 | 
	
		
			
				|  |  |                      elif optionIndex != "":
 | 
	
		
			
				|  |  |                          # index属性无法用于判断option,如果在以index属性作为判断依据的页面,则直接返回在这个页面
 | 
	
		
			
				|  |  |                          info(self.cls, "checkParentChoose",
 | 
	
		
			
				|  |  | -                             "已找到目标parent %s,该页面为Index item页面,无法判断具体option", INFO)
 | 
	
		
			
				|  |  | +                             "已找到目标parent %s,该页面为Index item页面,无法判断具体option"%parent['name'], INFO)
 | 
	
		
			
				|  |  |                          return 1
 | 
	
		
			
				|  |  |                      else:
 | 
	
		
			
				|  |  |                          error(self.cls, "checkParentChoose", "当前参数不足以判断option %s是否存在"%(option['name']), ERROR)
 | 
	
	
		
			
				|  | @@ -559,7 +559,7 @@ class UATRunnerCommand():
 | 
	
		
			
				|  |  |      用于处理parent可能出现的弹窗,isForword用于判断是处理进入弹窗还是退出弹窗
 | 
	
		
			
				|  |  |      '''
 | 
	
		
			
				|  |  |      def executeDialog(self, parent, isForward=True):
 | 
	
		
			
				|  |  | -        print "parent %s executeDialog parent[UATTree.TAB_UI_VIEW]:%s"%(parent, parent[UATTree.TAB_UI_VIEW])
 | 
	
		
			
				|  |  | +        print "parent %s executeDialog parent[UATTree.TAB_UI_VIEW]:%s"%(parent[UATTree.TAB_NAME], parent[UATTree.TAB_UI_VIEW])
 | 
	
		
			
				|  |  |          if isForward is True:
 | 
	
		
			
				|  |  |              dialog_A = parent[UATTree.TAB_UI_VIEW][UATTree.UIView_Dialog_F]
 | 
	
		
			
				|  |  |              type = "forward"
 | 
	
	
		
			
				|  | @@ -726,17 +726,17 @@ class UATRunnerCommand():
 | 
	
		
			
				|  |  |      顺着传入的parent path,逐个确认当前页面是否为该parent。如果不是该parent,则往path后面继续遍历;如果是该parent,则执行该层parent的toParentKey
 | 
	
		
			
				|  |  |      '''
 | 
	
		
			
				|  |  |      def exitMenuByPath(self, path):
 | 
	
		
			
				|  |  | -        print "exitMenuByPath path:", path
 | 
	
		
			
				|  |  | +        # print "exitMenuByPath path:", path
 | 
	
		
			
				|  |  |          for i in range(0, path.__len__()):
 | 
	
		
			
				|  |  |              parent = path[i]
 | 
	
		
			
				|  |  | -            info(self.cls, "exitMenuByPath", "check parent:%s"%parent, INFO)
 | 
	
		
			
				|  |  | +            info(self.cls, "exitMenuByPath", "check parent:%s"%parent[UATTree.TAB_NAME], INFO)
 | 
	
		
			
				|  |  |              ret = self.checkParentChoose(parent)
 | 
	
		
			
				|  |  |              if ret < 1:
 | 
	
		
			
				|  |  |                  continue
 | 
	
		
			
				|  |  |              toParentKey = parent[UATTree.TAB_TOPARENT_KEY]
 | 
	
		
			
				|  |  | -            info(self.cls, "exitMenuByPath", "now is in parent:%s"%parent, INFO)
 | 
	
		
			
				|  |  | +            info(self.cls, "exitMenuByPath", "now is in parent:%s"%parent[UATTree.TAB_NAME], INFO)
 | 
	
		
			
				|  |  |              if toParentKey[UATTree.Key_Event] == [] and toParentKey[UATTree.Key_IR] == []:
 | 
	
		
			
				|  |  | -                info(self.cls, "exitMenuByPath", "parent:%s has no toparent_key, using default back" % parent, INFO)
 | 
	
		
			
				|  |  | +                info(self.cls, "exitMenuByPath", "parent:%s has no toparent_key, using default back" % parent[UATTree.TAB_NAME], INFO)
 | 
	
		
			
				|  |  |                  self.executeKeyByType("back", UATTree.Key_Event)
 | 
	
		
			
				|  |  |              else:
 | 
	
		
			
				|  |  |                  self.executeKey(toParentKey)
 |