QTP点击winbutton失败

发布于 2024-11-10 17:30:52 字数 559 浏览 9 评论 0原文

我正在使用 QTP 进行网络添加。页面上有一些类型为“Winbutton”的按钮。除一个按钮外,大多数按钮上的“单击”操作效果都很好。事实上这个winbutton是一个复选框。但不知道为什么会被识别为Winbutton。但是当点击它时,它只是获得焦点,但并没有真正被点击。该复选框未选中。所以我想知道以前是否有人遇到过类似的问题以及是否有人知道如何解决这个问题。

非常感谢

Allen

The Winbutton https://i.sstatic.net/B5eLZ.png

说明 https://i.sstatic.net/XZDwl.png

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

The Winbutton
https://i.sstatic.net/B5eLZ.png

Description
https://i.sstatic.net/XZDwl.png

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

愛上了 2024-11-17 17:30:52

您通常不会在网页中看到 WinButton。 QTP层次结构是Browser.Page.WinButton吗?如果是这样,该控件可能确实是一个 .NET 或 ActiveX 控件。确保启动 QTP 时已加载 .NET 和 ActiveX 插件。

您是否有可以指向的公共站点来查看此问题?


编辑:如对此答案的评论所示,该控件实际上是一个 Java 控件。

You don't usually get WinButton in web pages. Is the QTP hierarchy Browser.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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文