Skip to content

Commit

Permalink
update dom
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph-Wang committed Nov 18, 2013
1 parent 5b1e870 commit 47fd4a1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
Binary file modified Dom.vbs
Binary file not shown.
Binary file modified Test/Action1/Resource.mtr
Binary file not shown.
10 changes: 10 additions & 0 deletions Test/Action1/Script.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
' init.vbs

initApp "C:\Program Files\Internet Explorer\iexplore.exe", "about:blank"

assert Browser(":=").Exist(5), "没有启动浏览器"
Expand All @@ -13,6 +14,14 @@ statusCode = getStatusCode(plugin, "http://www.baidu.com")

assert statusCode >= 200, "获取http状态码失败"

' Dom.vbs
initApp "C:\Program Files\Internet Explorer\iexplore.exe", "http://115.29.162.102/qtplib.html"
Set btn1 = getDomByID("btn")
assert btn1.value = "btn", "没有找到ID为btn1的元素"

Set btn3 = getDomByName("btn")
assert btn3.value = "btn", "没有找到name为btn的元素"


'' an implementation of assertion
Function assert(expression, errDescription)
Expand All @@ -28,3 +37,4 @@ End Function




Binary file modified Test/Parameters.mtr
Binary file not shown.
Binary file modified Test/Test.tsp
Binary file not shown.
2 changes: 1 addition & 1 deletion Test/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ FitThinkTime=0

[RtsUserInfo]
UserName=
Password=5289d0aae
Password=5289dce8e

[RtsGeneral]
EnableAutoTrans=1
Expand Down

0 comments on commit 47fd4a1

Please sign in to comment.