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 很简单的一个逻辑啊,具体什么地方看不懂? 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的返回值是一个布尔值 if then里面的條件,有2個,用and連接,如果2條件都滿足,那么執行這2句:checkflag=1
Info="Review order page appear";
說些第二個條件,設的一個同步點,應該是檢查"outertext"屬性值="Review your order,同步等待2000毫秒,如果相等,那么同步點返回true,不相等就返回false。
不知道這樣子說,對不……
页:
[1]