m2u-upass-admin / selenium-test / another-test-with-selenium-builder.json @ 122:464d27830931
History | View | Annotate | Download (3.14 KB)
1 |
{ |
---|---|
2 |
"type": "script", |
3 |
"seleniumVersion": "2", |
4 |
"formatVersion": 1, |
5 |
"steps": [
|
6 |
{ |
7 |
"type": "get", |
8 |
"url": "http://localhost:9100/m2u-upass-admin/common/Login.do" |
9 |
}, |
10 |
{ |
11 |
"type": "switchToFrameByIndex", |
12 |
"index": "0" |
13 |
}, |
14 |
{ |
15 |
"type": "setElementText", |
16 |
"locator": {
|
17 |
"type": "xpath", |
18 |
"value": "//div[2]/div[2]/form/table/tbody/tr[2]/td[3]/input" |
19 |
}, |
20 |
"text": "administrator" |
21 |
}, |
22 |
{ |
23 |
"type": "setElementText", |
24 |
"locator": {
|
25 |
"type": "xpath", |
26 |
"value": "//div[2]/div[2]/form/table/tbody/tr[3]/td[3]/input" |
27 |
}, |
28 |
"text": "Mss@dm1n" |
29 |
}, |
30 |
{ |
31 |
"type": "clickElement", |
32 |
"locator": {
|
33 |
"type": "xpath", |
34 |
"value": "//div[2]/div[2]/form/table/tbody/tr[5]/td[5]/input" |
35 |
} |
36 |
}, |
37 |
{ |
38 |
"type": "clickElement", |
39 |
"locator": {
|
40 |
"type": "xpath", |
41 |
"value": "//div[2]/div[2]/div/div[1]/div/ul/li/ul/li[4]/a" |
42 |
} |
43 |
}, |
44 |
{ |
45 |
"type": "setElementText", |
46 |
"locator": {
|
47 |
"type": "xpath", |
48 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[2]/td[3]/input" |
49 |
}, |
50 |
"text": "test" |
51 |
}, |
52 |
{ |
53 |
"type": "clickElement", |
54 |
"locator": {
|
55 |
"type": "xpath", |
56 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div[1]/input[1]" |
57 |
} |
58 |
}, |
59 |
{ |
60 |
"type": "clickElement", |
61 |
"locator": {
|
62 |
"type": "xpath", |
63 |
"value": "//div[2]/div[2]/div/div[2]/div/div[2]/form/input[2]" |
64 |
} |
65 |
}, |
66 |
{ |
67 |
"type": "setElementSelected", |
68 |
"locator": {
|
69 |
"type": "xpath", |
70 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[3]/td[3]/select//option[2]" |
71 |
} |
72 |
}, |
73 |
{ |
74 |
"type": "setElementSelected", |
75 |
"locator": {
|
76 |
"type": "xpath", |
77 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[4]/td[3]/select//option[2]" |
78 |
} |
79 |
}, |
80 |
{ |
81 |
"type": "clickElement", |
82 |
"locator": {
|
83 |
"type": "xpath", |
84 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div[1]/input[1]" |
85 |
} |
86 |
}, |
87 |
{ |
88 |
"type": "assertTextPresent", |
89 |
"text": "m2u-test-user-1" |
90 |
}, |
91 |
{ |
92 |
"type": "assertTextPresent", |
93 |
"text": "stock-user-1" |
94 |
}, |
95 |
{ |
96 |
"type": "assertTextPresent", |
97 |
"text": "im2u-test-user-1" |
98 |
}, |
99 |
{ |
100 |
"type": "clickElement", |
101 |
"locator": {
|
102 |
"type": "xpath", |
103 |
"value": "//div[2]/div[2]/div/div[2]/div/table[2]/tbody/tr[3]/td[1]/a" |
104 |
} |
105 |
}, |
106 |
{ |
107 |
"type": "assertTextPresent", |
108 |
"text": "Customer Enquiry - Details" |
109 |
}, |
110 |
{ |
111 |
"type": "assertTextPresent", |
112 |
"text": "im2u-test-user-1" |
113 |
}, |
114 |
{ |
115 |
"type": "assertTextPresent", |
116 |
"text": "Active" |
117 |
}, |
118 |
{ |
119 |
"type": "clickElement", |
120 |
"locator": {
|
121 |
"type": "xpath", |
122 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div/input[1]" |
123 |
} |
124 |
}, |
125 |
{ |
126 |
"type": "assertElementPresent", |
127 |
"locator": {
|
128 |
"type": "css selector", |
129 |
"value": "tr.alt:nth-child(3)" |
130 |
} |
131 |
}, |
132 |
{ |
133 |
"type": "assertElementPresent", |
134 |
"negated": true, |
135 |
"locator": {
|
136 |
"type": "css selector", |
137 |
"value": "tr.alt:nth-child(4)" |
138 |
} |
139 |
} |
140 |
] |
141 |
} |