用while....wend做条件语句,为什么当totalnum=0时仍然会执行语句呢?搞不懂啊
本帖最后由 shenjie0903 于 2013-11-13 16:44 编辑While TotalNum>0
.WebCheckBox("CheckAll").Click
.WebButton("Delete").Click
Browser("Poll Location Management").Dialog("来自网页的消息").WinButton("确定").Click
CheckDelete=.WebElement("Delete Successflly").Exist
If CheckDelete Then
Reporter.ReportEvent micPass,"Step 1 delete","Passed"
Else
Reporter.ReportEvent micFail,"Step 1 delete","Failed"
End If
Wend 回复 1# shenjie0903
知道了,TotalNum变量没有在while条件里面赋值变化,造成了死循环 回复 2# shenjie0903
很典型的错误啊。
页:
[1]