-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.nbs
More file actions
159 lines (159 loc) · 5.63 KB
/
test.nbs
File metadata and controls
159 lines (159 loc) · 5.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?xml version="1.0" encoding="UTF-8"?>
<transaction>
<version>5</version>
<name>京东网上商城-综合网购首选,正品行货,机打发票,售后上门取件,省钱又放心</name>
<description></description>
<url>http://www.360buy.com</url>
<popwin>1</popwin>
<nobub></nobub>
<plugin></plugin>
<steps>
<step>
<name>京东网上商城-综合网购首选,正品行货,机打发票,售后上门取件,省钱又放心</name>
<description></description>
<shot>1</shot>
<actions>
<action type="WAIT">
<context window="0" frame="0"/>
<attributes>
<attribute name="condition">STATUS</attribute>
<attribute name="express">1</attribute>
<attribute name="timeout">60</attribute>
</attributes>
</action>
<action type="CLICK">
<context window="0" frame="0"/>
<attributes>
<attribute name="tagName">INPUT</attribute>
<attribute name="id">key</attribute>
<attribute name="type">TEXT</attribute>
<attribute name="index">0</attribute>
</attributes>
</action>
</actions>
</step>
<step>
<name>京东网上商城-综合网购首选,正品行货,机打发票,售后上门取件,省钱又放心[2]</name>
<description></description>
<shot>1</shot>
<actions>
<action type="WAIT">
<context window="0" frame="1"/>
<attributes>
<attribute name="condition">STATUS</attribute>
<attribute name="express">1</attribute>
<attribute name="timeout">60</attribute>
</attributes>
</action>
<action type="SETVALUE">
<context window="0" frame="0"/>
<attributes>
<attribute name="tagName">INPUT</attribute>
<attribute name="id">key</attribute>
<attribute name="type">TEXT</attribute>
<attribute name="index">0</attribute>
<attribute name="value">bFnKG]IJ>+XK</attribute>
</attributes>
</action>
<action type="CLICK">
<context window="0" frame="0"/>
<attributes>
<attribute name="tagName">INPUT</attribute>
<attribute name="type">BUTTON</attribute>
<attribute name="value">搜索</attribute>
<attribute name="index">0</attribute>
</attributes>
</action>
</actions>
</step>
<step>
<name>IPHONE4S - 商品搜索 - 京东商城</name>
<description></description>
<shot>1</shot>
<actions>
<action type="WAIT">
<context window="0" frame="0"/>
<attributes>
<attribute name="condition">STATUS</attribute>
<attribute name="express">1</attribute>
<attribute name="timeout">60</attribute>
</attributes>
</action>
<action type="CLICK">
<context window="0" frame="0"/>
<attributes>
<attribute name="tagName">A</attribute>
<attribute name="href">http://jd2008.360buy.com/purchase/InitCart.aspx?pid=570127&pcount=1&ptype=1</attribute>
<attribute name="innerText">加入购物车</attribute>
<attribute name="index">0</attribute>
</attributes>
</action>
</actions>
</step>
<step>
<name>商品已成功加入购物车</name>
<description></description>
<shot>1</shot>
<actions>
<action type="WAIT">
<context window="1" frame="0"/>
<attributes>
<attribute name="condition">STATUS</attribute>
<attribute name="express">2</attribute>
<attribute name="timeout">60</attribute>
</attributes>
</action>
<action type="CLICK">
<context window="1" frame="0"/>
<attributes>
<attribute name="tagName">A</attribute>
<attribute name="id">GotoShoppingCart</attribute>
<attribute name="href">http://cart.360buy.com/cart/cart.html?backurl=http://www.360buy.com/product/570127.html</attribute>
<attribute name="innerText">去结算</attribute>
<attribute name="index">0</attribute>
</attributes>
</action>
</actions>
</step>
<step>
<name>我的购物车 - 京东商城</name>
<description></description>
<shot>1</shot>
<actions>
<action type="WAIT">
<context window="1" frame="0"/>
<attributes>
<attribute name="condition">STATUS</attribute>
<attribute name="express">1</attribute>
<attribute name="timeout">60</attribute>
</attributes>
</action>
<action type="CLICK">
<context window="1" frame="0"/>
<attributes>
<attribute name="tagName">A</attribute>
<attribute name="id">toSettlement</attribute>
<attribute name="href">javascript:goToOrder();</attribute>
<attribute name="innerText">去结算</attribute>
<attribute name="index">0</attribute>
</attributes>
</action>
</actions>
</step>
<step>
<name>我的购物车 - 京东商城[6]</name>
<description></description>
<shot>1</shot>
<actions>
<action type="WAIT">
<context window="1" frame="1"/>
<attributes>
<attribute name="condition">STATUS</attribute>
<attribute name="express">1</attribute>
<attribute name="timeout">60</attribute>
</attributes>
</action>
</actions>
</step>
</steps>
</transaction>