Forum Discussion

Cameronsmith63's avatar
Cameronsmith63
Occasional Contributor
15 years ago

Cannot map the proper namer

Hi all,



Scenario: I cannot map the full name of the specific object.




Is there a method for me to extract the words "Approve Pending  SalesOrder"? I have provided a picture, its in the blue bar.





I need to extract it because i want to search for it on the page and accept the task, if not, i cannot verify whether the mouse click is good enough, because i have to hope that its on the specific bar.





I have used the object finder, it returns the address but not the actual words: Sys.Process("WinOrbit").WinFormsObject("FrameForm").WinFormsObject("ctl_panelMain").WinFormsObject("ctl_panelWork").WinFormsObject("HeaderControl", "Customer Workspace").WinFormsObject("CustomerWorkspace").WinFormsObject("pnlBrowse").WinFormsObject("tabWorkspace").WinFormsObject("TabPage", "Tasks").WinFormsObject("TaskManagement").WinFormsObject("tcMain").WinFormsObject("tpCurrentTasks").WinFormsObject("splitContainer1").WinFormsObject("SplitterPanel", "", 1).WinFormsObject("tasksAndActions").WinFormsObject("lcTasksAndActions")





So in short, i am going to store the name "Approve Pending  SalesOrder" in a database, write a method to search for the name on the page, then accept the task. 


The reason why i cant rely on the mouse click is because orders are constantly made, and the "Approve Pending SalesOrder" bar might shift to a different section on the page(the xy axis is not good practice for what i want to do).



Thanx 

1 Reply

  • Hi Cameron,


    As far as I understand, the problem is that you need to find a way to select a specific row by its caption in a hierarchical grid. If so, I recommend that you see the Working With Grids and Common Operations for Grids help topics - they contain information on supported grid controls and explain how to perform such actions in TestComplete.