Javascript 为什么单击“我的搜索”按钮会返回错误?
我使用的是真正的客户端协议,我有一个带有搜索按钮的web应用程序,它是使用图像实现的。我点击图像按钮提取一些结果 搜索按钮的html代码为:Javascript 为什么单击“我的搜索”按钮会返回错误?,javascript,testing,loadrunner,Javascript,Testing,Loadrunner,我使用的是真正的客户端协议,我有一个带有搜索按钮的web应用程序,它是使用图像实现的。我点击图像按钮提取一些结果 搜索按钮的html代码为: < img style="border: medium none;" onclick="ajaxLoadingStarted(this, document.getElementById('select:ajaxLoadingImg')); searchVehicles();" src="/webPortal/common/images/green
< img style="border: medium none;"
onclick="ajaxLoadingStarted(this, document.getElementById('select:ajaxLoadingImg')); searchVehicles();"
src="/webPortal/common/images/green-search-btn.png" id="select:searchBtn">
不幸的是,我得到了这个错误:
t=00019690ms:错误-203252:46:评估JavaScript代码/
window.alert($('#javax.face…ement;}}})/失败-发生异常:
NS\u错误\u不可用:组件不可用[MsgId:
MERR-203252]
为什么会发生这种情况?如果您播放单个步骤而不是从一开始就播放脚本,则某些功能不可用。另一种方法是在尝试的步骤之后在该步骤上创建一个断点,然后从一开始就播放整个脚本。我在编写脚本时也遇到过类似问题解决办法是:
它没有给我任何错误。-你在使用哪个浏览器?Firefox 3.6.3在LR 11.03上使用ajax true client有人想到通过javascripting单击图像吗??
var searchobj = document.getElementById('select:searchBtn').onclick();
web_text_link("",
"Snapshot=t50.inf",
DESCRIPTION,
"Text="",
"ID=select:searchBtn",
ACTION,
"UserAction=Click",
LAST);