#UIOSelector raise Error if Element not found (like a same pywinauto error)

#WebHightlight = FocusHighlight
dev-linux
Ivan Maslov 5 years ago
parent df2954019d
commit ab53f8860f

@ -195,6 +195,8 @@ def UIOSelector_Get_UIO (inSpecificationList,inElement=None):
lResultList=UIOSelector_Get_UIOList(inSpecificationList,inElement)
if len(lResultList)>0:
lResult=lResultList[0]
else:
raise pywinauto.findwindows.ElementNotFoundError("Robot can't find element by the UIOSelector")
return lResult
#################################################################################################

@ -247,7 +247,7 @@
var lElementId = mGlobal.GenerateUniqueID()
var lSubItemHandleId=lResponseJSON.Result[i].handle;
var lSubItemActionOnClick=' onclick="mGlobal.TreeLoadSubTree(\''+lElementId+'\');" '
var lSubItemActionOnRightClick=' oncontextmenu="mGlobal.ElementHighlightNew(\''+lElementId+'\');" '
var lSubItemActionOnRightClick=' onclick="mGlobal.ElementHighlightNew(\''+lElementId+'\');" '
var lIconSelectOnClick=' onclick="mGlobal.TreeObjectInfoLoad(\''+lElementId+'\');" '
var lIconTestOnClick=' onclick="mGlobal.Test(\''+lElementId+'\');" '
var lIconUpOnClick=' onclick="mGlobal.Actions.fAutomationSearchMouseElementHierarchyRun(\''+lElementId+'\');" '
@ -394,7 +394,7 @@
$.ajax({
type: "POST",
url: 'GUIAction',
data: '{"ModuleName":"GUI","ActivityName":"UIOSelector_Highlight","ArgumentList":['+JSON.stringify(lSpecificationArray)+']}',
data: '{"ModuleName":"GUI","ActivityName":"UIOSelector_FocusHighlight","ArgumentList":['+JSON.stringify(lSpecificationArray)+']}',
success:
function(lData,l2,l3)
{

Loading…
Cancel
Save