-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6kohls
159 lines (156 loc) · 4.96 KB
/
6kohls
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0082)file:///C:/Users/ALEKSE~1/AppData/Local/Temp/upload_1448799717620_fuddruckers.html -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head profile="http://selenium-ide.openqa.org/profiles/test-case"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="selenium.base" href="http://www.kohls.com/">
<title>kohls.com</title>
</head>
<body>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr><td rowspan="1" colspan="3">kohls.com</td></tr>
</thead><tbody>
<tr>
<td>store</td>
<td>/data/temp</td>
<td>screenshots_folder</td>
</tr>
<tr>
<td>storeEval</td>
<td>storedVars['church_links'] =[]; </td>
<td></td>
</tr>
<tr>
<td>store</td>
<td>/data/temp</td>
<td>screenshots_folder</td>
</tr>
<tr>
<td>store</td>
<td>['http://www.kohls.com/stores/al.shtml','http://www.kohls.com/stores/ak.shtml','http://www.kohls.com/stores/az.shtml','http://www.kohls.com/stores/ar.shtml','http://www.kohls.com/stores/ca.shtml','http://www.kohls.com/stores/co.shtml','http://www.kohls.com/stores/ct.shtml','http://www.kohls.com/stores/de.shtml','http://www.kohls.com/stores/fl.shtml','http://www.kohls.com/stores/ga.shtml','http://www.kohls.com/stores/id.shtml','http://www.kohls.com/stores/il.shtml','http://www.kohls.com/stores/in.shtml','http://www.kohls.com/stores/ia.shtml','http://www.kohls.com/stores/ks.shtml','http://www.kohls.com/stores/ky.shtml','http://www.kohls.com/stores/la.shtml','http://www.kohls.com/stores/me.shtml','http://www.kohls.com/stores/md.shtml','http://www.kohls.com/stores/ma.shtml','http://www.kohls.com/stores/mi.shtml','http://www.kohls.com/stores/mn.shtml','http://www.kohls.com/stores/ms.shtml','http://www.kohls.com/stores/mo.shtml','http://www.kohls.com/stores/mt.shtml','http://www.kohls.com/stores/ne.shtml','http://www.kohls.com/stores/nv.shtml','http://www.kohls.com/stores/nh.shtml','http://www.kohls.com/stores/nj.shtml','http://www.kohls.com/stores/nm.shtml','http://www.kohls.com/stores/ny.shtml','http://www.kohls.com/stores/nc.shtml','http://www.kohls.com/stores/nd.shtml','http://www.kohls.com/stores/oh.shtml','http://www.kohls.com/stores/ok.shtml','http://www.kohls.com/stores/or.shtml','http://www.kohls.com/stores/pa.shtml','http://www.kohls.com/stores/ri.shtml','http://www.kohls.com/stores/sc.shtml','http://www.kohls.com/stores/sd.shtml','http://www.kohls.com/stores/tn.shtml','http://www.kohls.com/stores/tx.shtml','http://www.kohls.com/stores/ut.shtml','http://www.kohls.com/stores/vt.shtml','http://www.kohls.com/stores/va.shtml','http://www.kohls.com/stores/wa.shtml','http://www.kohls.com/stores/wv.shtml','http://www.kohls.com/stores/wi.shtml','http://www.kohls.com/stores/wy.shtml']</td>
<td>my_states</td>
</tr>
<tr>
<td>store</td>
<td>0</td>
<td>state_index</td>
</tr>
<tr>
<td>store</td>
<td>50</td>
<td>number_of_states</td>
</tr>
<tr>
<td>storeEval</td>
<td>storedVars['state_array'] = ${my_states}</td>
<td></td>
</tr>
<!--Select State-->
<tr>
<td>while</td>
<td>${state_index} < ${number_of_states}</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>storedVars['label_state']=storedVars.state_array[storedVars.state_index]</td>
<td>my_current_state</td>
</tr>
<tr>
<td>echo</td>
<td>${my_current_state}</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${my_current_state}</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>storedVars['church_selector'] = 'a.citylist'</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>var links = window.document.querySelectorAll(storedVars['church_selector']);for(var i =0; i < links.length; i++) {storedVars['church_links'].push(links[i].href);}</td>
<td></td>
</tr>
<tr>
<td>echo</td>
<td>${church_links}</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>storedVars.state_index++</td>
<td></td>
</tr>
<tr>
<td>endWhile</td>
<td></td>
<td></td>
</tr>
<!--Select State-->
<!--open and add links-->
<tr>
<td>store</td>
<td>0</td>
<td>profileLinksIndex</td>
</tr>
<tr>
<td>storeEval</td>
<td>storedVars['profileLinksSize'] = storedVars['church_links'].length;</td>
<td></td>
</tr>
<tr>
<td>while</td>
<td>${profileLinksIndex} < ${profileLinksSize}</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>storedVars['profileLink'] = storedVars['church_links'][storedVars['profileLinksIndex']]</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${profileLink}</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>captureEntirePageScreenshot</td>
<td>${screenshots_folder}/${profileLinksIndex}.png</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>storedVars['profileLinksIndex'] = storedVars['profileLinksIndex'] + 1; </td>
<td></td>
</tr>
<tr>
<td>endWhile</td>
<td></td>
<td></td>
</tr>
</tbody></table>
</body></html>