-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
232 lines (189 loc) · 7.61 KB
/
index.html
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!DOCTYPE html>
<html lang="en">
<head>
<meta https-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test Page for selenium-cucumber</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$("#hiddenElement").hide();
setTimeout(function() {
$("#hiddenElement").fadeIn(1500);
}, 10000);
setTimeout(function() {
$("#disabledBt").removeAttr("disabled");
}, 20000);
});
</script>
<style>
a:hover{
background-color: yellow;
}
</style>
</head>
<body>
<script>
function showText() {
document.getElementById("msg").innerHTML = "Now button is enabled";
}
function callAlert() {
var x;
if (confirm("Press a button!") == true) {
x = "You pressed OK!";
} else {
x = "You pressed Cancel!";
}
document.getElementById("demo").innerHTML = x;
}
function doubleClick() {
document.getElementById("demo2").innerHTML = "Hello World";
}
function hovered() {
document.getElementById("mouse_hover_demo").innerHTML = "Mouse hovered";
}
</script>
<form id="frm" action="" method="post">
<fieldset>
<legend class="form_name">Simple sample form with input elements</legend>
<p>
<label for="dummy0">Text input (first name)</label><br>
<input type="text" class="fname_class" name="fname_name" id="f_name" value="">
</p>
<p>
<label for="dummy1">Text input (last name)</label><br>
<input type="text" class="lname_class" id="l_name" name="lname_name" value="">
</p>
<p>
<label for="dummy1">Disabled field</label><br>
<input type="text" class="df_class" id="df_id" name="df_name" value="" disabled>
</p>
<p>
<label for="dummy2">Textarea (address)</label><br>
<textarea name="dummy2" id="address" class="address_class" rows="3" cols="20" value=""></textarea>
</p>
<p>
<label for="dummy3">A password field (password)</label><br>
<input type="password" class="cls_pwd" id="pwd" name="nm_pwd" value="">
</p>
<p>
<label for="dummy4">radio button group (Gender)</label><br>
<input type="radio" name="radio_gender" value="M">Male</input>
<input type="radio" name="radio_gender" value="F">Female</input>
</p>
<p>
<input type="submit" value="Submit" id="submit" name="btn_submit" >
<input type="reset" value="Reset" id="reset" name="btn_reset">
<input type="button" value="disabledBt" id="disabledBt_id" name="disabledBt_name" disabled>
</p>
</fieldset>
</form>
<br>
<fieldset>
<legend>Multiselect dropdown</legend>
<p>
<select name="cars" multiple>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
</p>
</fieldset>
<br>
<fieldset>
<legend>Dropdown lists</legend>
<p>
<label for="dummy3">Select field</label><br>
<select id="dropdownList1" name="name_select1" value="Please select your choice select">
<option value="s1">Select_1</option>
<option value="s2">Select_2</option>
<option value="s3" selected>Select_3</option>
<option value="s4">Select_4</option>
<option value="s5">Select_5</option>
</select>
</p>
</fieldset>
<br>
<fieldset>
<legend>Radio Buttons </legend>
<p>
<input type="radio" id="rdb1" name="rdb1_name" class="rdb1_class" checked> Radio one<br>
<input type="radio" id="rdb2" name="rdb2_name" class="rdb2_class"> Radio two<br>
<input type="radio" id="rdb3" name="rdb3_name" class="rdb3_class"> Radio three<br>
<input type="radio" id="rdb4" name="rdb4_name" class="rdb4_class"> Radio four<br>
<input type="radio" id="rdb5" name="rdb5_name" class="rdb5_class" checked> Radio five<br>
</p>
</fieldset>
<br>
<fieldset>
<legend>Checkbox </legend>
<p>
<input type="checkbox" id="chk1" name="chk1_name" class="chk1_class" checked> Check one<br>
<input type="checkbox" id="chk2" name="chk2_name" class="chk2_class"> Check two<br>
<input type="checkbox" id="chk3" name="chk3_name" class="chk3_class"> Check three<br>
<input type="checkbox" id="chk4" name="chk4_name" class="chk4_class"> Check four<br>
<input type="checkbox" id="chk5" name="chk5_name" class="chk5_class" checked> Check five<br>
</p>
</fieldset>
<br>
<fieldset>
<legend>Display element after 10 sec</legend>
<div id="hiddenElement" name="he_name" class="he_class">This showed after 10 sec</div>
</fieldset>
<br>
<fieldset>
<legend>Enable Button after 10 sec</legend>
<input type="button" value="Button" id="disabledBt" onclick="showText()" disabled>
<p id="msg"></p>
</fieldset>
<br>
<fieldset>
<legend>Images - valid</legend>
JPG image <img id="img1" src="http://s27.postimg.org/xlqzpviyr/original_image.jpg" alt="Image one">
PNG image <img id="img2" src="http://s26.postimg.org/itpfqlcop/logo1.png" alt="Image one">
</fieldset>
<br>
<fieldset>
<legend>Images - Invalid</legend>
JPG image <img id="img1_incorrect" src="http://s27.postimg.org/kkehri9c3/original_image.jpg" alt="Image one">
PNG image <img id="img2_incorrect" src="http://s28.postimg.org/kjqls15el/logo_incorrect.png" alt="Image one">
</fieldset>
<br>
<fieldset>
<legend>Links</legend>
<p>
<a href="https://rubygems.org/gems/selenium-cucumber">selenium-cucumber gem</a> <br>
<a href="https://github.com/sameer49/selenium-cucumber/blob/master/doc/canned_steps.md">Predefined-steps</a><br>
<a href="http://seleniumcucumber.info/" onclick="window.open('http://seleniumcucumber.info/', 'newwindow', 'width=500, height=500'); return false;">selenium-cucumber website</a> <br>
<a href="http://seleniumcucumber.info/video-tutorials/" target="_blank">video tutorials</a> <br>
<a href="http://seleniumcucumber.info/blog/" target="_blank">blog</a> <br>
</p>
</fieldset>
<br>
<fieldset>
<legend>Mous hover</legend>
<button id="hover_it" onmouseover="hovered()">Hover It</button>
<p id="mouse_hover_demo">Mouse Not hovered</p>
</fieldset>
<br>
<fieldset>
<legend>Javascript alert</legend>
<p name="javascript_alert_msg">Click the button to display a confirm box.</p>
<button id="try_it" onclick="callAlert()">Try it</button>
<p id="demo">this is demo line</p>
</p>
</fieldset>
<br>
<fieldset>
<legend>Double click here</legend>
<p id="dbClick" ondblclick="doubleClick()">Double-click this paragraph to trigger a function.</p>
<p id="demo2" name="demo2_name"></p>
</p>
</fieldset>
<fieldset>
<legend>iFrames</legend>
<iframe name="frame_one" src="iFrame1.html" width="200" height="200"></iframe>
<iframe name="frame_two" src="iFrame2.html" width="200" height="200"></iframe>
</fieldset>
</body>
</html>