QTP点击winbutton失败
我正在使用 QTP 进行网络添加。页面上有一些类型为“Winbutton”的按钮。除一个按钮外,大多数按钮上的“单击”操作效果都很好。事实上这个winbutton是一个复选框。但不知道为什么会被识别为Winbutton。但是当点击它时,它只是获得焦点,但并没有真正被点击。该复选框未选中。所以我想知道以前是否有人遇到过类似的问题以及是否有人知道如何解决这个问题。
非常感谢
Allen
I'm working on QTP with web-adding. There are some buttons in type "Winbutton" on the page. The "click" action on most of the buttons works very well except one. In fact this winbutton is a checkbox. But I don't know why it is recognized as Winbutton. But when click on it, it just gets focused but not really clicked. The checkbox is not checked. So I would like to know if anyone met the similar problem before and if anyone knows how to solve this.
Many thanks in adavance
Allen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您通常不会在网页中看到
WinButton
。 QTP层次结构是Browser.Page.WinButton
吗?如果是这样,该控件可能确实是一个 .NET 或 ActiveX 控件。确保启动 QTP 时已加载 .NET 和 ActiveX 插件。您是否有可以指向的公共站点来查看此问题?
编辑:如对此答案的评论所示,该控件实际上是一个 Java 控件。
You don't usually get
WinButton
in web pages. Is the QTP hierarchyBrowser.Page.WinButton
? If so the control is probably really a .NET or ActiveX control. Make sure that you have the .NET and ActiveX addins loaded when you launch QTP.Do you have a public site that you can point to in order to see this problem?
Edit: As seen in the comments to this answer the control was actually a Java control.