标题: What the meaning of .........(QTP question) [打印本页] 作者: Susan1202 时间: 2007-8-13 18:19 标题: What the meaning of .........(QTP question) what the meaning of :
If Info="" and Browser("Shopping XPerience").Page("Confirmation - HP's Small").WebElement("Review your order").WaitProperty("outertext","Review your order ",2000) then
checkflag=1
Info="Review order page appear"
end if作者: songfun 时间: 2007-8-13 20:13
很简单的一个逻辑啊,具体什么地方看不懂?作者: marco 时间: 2007-8-13 21:25
Return Value
A Boolean value. Returns TRUE if the property achieves the value, and FALSE if the timeout is reached before the property achieves the value. A FALSE return value does not indicate a failed step.
WaitProperty的返回值是一个布尔值作者: jane.su 时间: 2007-8-13 23:49
if then里面的條件,有2個,用and連接,如果2條件都滿足,那么執行這2句:checkflag=1
Info="Review order page appear";
說些第二個條件,設的一個同步點,應該是檢查"outertext"屬性值="Review your order,同步等待2000毫秒,如果相等,那么同步點返回true,不相等就返回false。