UFT 14.0:单击时不显示Java菜单

时间:2017-07-15 11:28:29

标签: java qtp hp-uft calypso

enter image description here

如上图所示,我必须单击左上方状态栏上的向下箭头按钮才能显示菜单。我编写的代码突出显示了菜单按钮,但没有显示男性选项。

JavaWindow("FX Deal Station (User:").JavaMenu("16icon").Select
JavaWindow("FX Deal Station (User:").JavaMenu("16icon").JavaMenu("Back-Office").Select
JavaWindow("FX Deal Station (User:").JavaMenu("16icon").JavaMenu("Back-Office").JavaMenu("BO Window").Select

请建议。

1 个答案:

答案 0 :(得分:3)

可怕的Calypso'啊。 FX Deal Station菜单。

以下是我用来选择菜单

的黑客行为
Call JavaWindow("FX Deal Station (User:").JavaMenu("16icon").Object.doClickOnMenu

JavaWindow("FX Deal Station (User:").JavaMenu("16icon").JavaMenu("Back-Office").JavaMenu("BO Window").Select