forked from sp0tteh/codeception-selenium-ide-format
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemo.html
97 lines (68 loc) · 1.87 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<title>Codeception IDE Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
//Click
$('#click').on('click', function() {
$('#clicked').show();
});
$('#draggable').draggable();
$('#droppable').droppable({
drop: function(event, ui) {
$('#dropped').show();
setTimeout(function (){
$('#waitforme').show();
setTimeout(function (){
$('#waitfortext').show();
setTimeout(function (){
$('#waitfortextinelement').show();
}, 1000);
}, 1000);
}, 1000);
}
});
});
</script>
</head>
<style type="text/css">
#draggable {
width:100px;
height:100px;
background-color: #c3c3c3;
margin:20px;
}
#droppable {
width:100px;
height:100px;
background-color: #c3c3c3;
margin:20px;
}
</style>
<body>
<a href='#' id='click'>click me</a>
<div id="clicked" style='display:none;'>clicked</div>
<form>
<select id='select'>
<option></option>
<option value='foo'>foo</option>
<option value='bar'>bar</option>
</select>
<select id='multiselect' multiple>
<option></option>
<option value='foo'>foo</option>
<option value='bar'>bar</option>
</select>
<input value='' id='field'/>
</form>
<div id="draggable" class='ui-widget-content ui-draggable'>Drag me!</div>
<div id="droppable" class='ui-widget-content ui-draggable'>Drop Here</div>
<div style='display:none;' id="dropped">Dropped</div>
<div style='display:none;' id='waitforme'>wait for me</div>
<div style='display:none;' id='waitfortext'>wait for text</div>
<div style='display:none;' id='waitfortextinelement'>wait for text in element</div>
</body>
</html>