QTP 与 JQuery 树
我们正在使用一个利用 JQuery 树的应用程序,并试图自动化该应用程序。我们在自动化应用程序时发现以下问题,如果有人可以帮助我们解决以下查询,那就太好了:
要在树中添加任何组,我们右键单击父节点并选择“添加组”选项创建时,QTP 无法识别此操作。 ->我们确实找到了一个临时解决方案,通过添加一行代码并启动右键单击事件。 (如果有人能为我们提供永久的解决方案,那就太好了)。
为组提供新名称后,我们需要按 Enter 按钮才能访问数据库,在录制会话期间按了 Enter 键,并且在重新播放相同内容时,QTP 无法识别 Enter 键 为组提供新名称
希望我的疑问很清楚。如果有人能提供上述两个查询的解决方案,将不胜感激。
We are using an application which make use of JQuery tree and were trying to automate the application. we find the following issues while automating the application, it would be great if anyone could help us for the following queries:
To add any group in a tree, we right click on a parent node and select the option "Add Group" to create, QTP doesn't recognize this action. -> we do found out a temporary solutions by adding one line of code with right click event initiated. (It would be great if someone could provide us a permanent solutions).
After providing new name for a group, we need to hit the enter button in order to hit the database, the enter key was pressed during our recording session and when same was re-played, QTP didn't recognize the enter key which were pressed.
Hope my queries are clear. It would be appreciated if anyone could provide the solution for the above two queries.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要触发输入,即使您可以使用以下代码,
请设置 Keyboard = CreateObject("WScript.Shell")
Keyboard.SendKeys "{ENTER}"
To trigger an enter even you can use below code,
set keyboard = CreateObject("WScript.Shell")
keyboard.SendKeys "{ENTER}"