chenhui 2014-11-20
Browser("百度一下,你就知道").Page("百度一下,你就知道").WebEdit("wd").Set "d"
Browser("百度一下,你就知道").Page("百度一下,你就知道").WebEdit("wd").CheckProperty "value","d1" 这里d1的值是和webedit中的值做比较
CheckProperty 后面的value是用自带工具jack抓取的。就是文本框wd的输入后的值。
另外一种验证方式是
Reporter.ReportEvent
For i = 1 To 4
If i=1 Then
Reporter.ReportEvent micPass, "setp 1","micpass=2"
ElseIf i = 2 Then
Reporter.ReportEvent micFail, "setp 2","micFail=1"
ElseIf i = 3 Then
Reporter.ReportEvent micDone, "setp 3","micDone=3"
ElseIf i = 4 Then
Reporter.ReportEvent micWarning, "setp 4","micWarning=4"
End If
Next