gpt4 book ai didi

javascript - "Stub Object"对象的属性不满足检查点的条件

转载 作者:行者123 更新时间:2023-11-28 21:29:14 24 4
gpt4 key购买 nike

““ stub 对象”对象的属性不符合检查点的条件”——我遇到了这个错误,我尝试了所有类型的检查点。

for (i = 0; i < rows; i++) {
j = 1;
cellvalue = grid.wValue(i, j);
grid.ClickCell(i, j);
//The problem is this checkpoint;
aqObject.CheckProperty(Aliases.browser.page1921681611258080.panelTabpanelBody.p‌anelGamblerpanel.panelTabpanel.panelForm.panelFormtargetel.panelContainer2.tableD‌​ isplayfield4.panelDisplayfieldInputel, "contentText", cmpEqual, "995");
}

最佳答案

您得到的错误意味着找不到您传递给 CheckProperty 方法的对象。您可以在调用检查点之前检查对象是否存在。

for (i = 0; i < rows; i++) {
j = 1;
cellvalue = grid.wValue(i, j);
grid.ClickCell(i, j);
var obj = Aliases.browser.page1921681611258080.panelTabpanelBody.p‌anelGamblerpanel.panelTabpanel.panelForm.panelFormtargetel.panelContainer2.tableD‌​ isplayfield4.panelDisplayfieldInputel;
//The problem is this checkpoint;
if (false == obj.Exists)
Log.Error("The object is not found");
else
aqObject.CheckProperty(, "contentText", cmpEqual, "995");
}

关于javascript - "Stub Object"对象的属性不满足检查点的条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29467002/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com