1,GetROProperty
说明:You use the GetROProperty method to retrieve the current value of a test object property from a run-time object in your application.
一般来说,所有的对象都可以使用此方法得到运行时对象的实际值。
语法:object.GetROProperty (Property, [PropertyData])
如 ButtonName=Browser("QA Home Page")。Page("QA Home Page")。WebButton("Submit")。GetTOProperty("Name")
2,WaitProperty
说明:Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step.
此方法可以解决由于等待系统进行处理某些操作或网络原因引起的测试对象同步问题。
语法:object.WaitProperty (PropertyName, PropertyValue, [TimeOut])
如
Window("Test")。Static("Status:")。WaitProperty "text", "Ready", 30000
3,Instr
Returns the position of the first occurrence of one string within another.
可以得到一个字符串在另外一个字符串中首次出现的位置。
语法: InStr([start, ]string1, string2[, compare])
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余3页未读,立即下载