【发布时间】:2017-07-05 08:11:33
【问题描述】:
在我们的 SAP 系统中,我们经常通过 SAP GUI 脚本 API 自动化 GuiTree 控件。在左栏中,有一个描述。在第二列中,有一个包含工具提示的图标。
通过这段代码,我可以读取每个节点的文本:
/*ID is the SAPFEWSELib.GuiComponent.Id of the SAPFEWSELib.GuiTree; SAPWindow is the mainwindow
of SAP of type SAPFEWSELib.GuiMainWindow*/
SAPFEWSELib.GuiTree GT = (SAPFEWSELib.GuiTree)SAPWindow.FindById(ID);
foreach (string key in GT.GetAllNodeKeys())
{
System.Console.WriteLine("Key " + key + " contains " + GT.GetNodeTextByKey(key));
}
是否也可以访问第二列?
【问题讨论】:
-
什么是“锄头”?我不确定我是否对 Urban Dictionary 提供的解释感到满意...
-
谢谢你,这让我离解决问题更近了...
-
我喜欢这样的城市谈话和这样的城市帮助:)