-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
149 lines (131 loc) · 5.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Locator game</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/highlight.min.js"></script>
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="bootstrap-tour.css" rel="stylesheet">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
<script src="bootstrap-tour.js"></script>
<script src="jquery.toaster.js"></script>
<script src="data.js"></script>
<script src="exercise.js"></script>
<style>
.highlight {
background-color: yellow;
}
form {
margin-top: 50px;
}
input#expression {
width: 450px;
}
</style>
</head>
<body>
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="0"
aria-valuemin="0" aria-valuemax="100" style="width:0%">
</div>
</div>
<h1></h1>
<div class="container-fluid">
<div class="row">
<div class="col-md-5">
<h3>HTML</h3>
<pre><code class="html"></code></pre>
</div>
<div class="col-md-4">
<h3>Rendered HTML</h3>
<pre id="render"></pre>
</div>
<div class="col-md-3">
<button id="toggleHelp" type="button">Help</button>
<div id="help">
<h3 id="helpTitle"></h3>
<p id="helpText"></p>
<h4>Example</h4>
<p id="examples"></p>
</div>
</div>
</div>
<form class="form-inline">
<div class="form-group">
<select id="type" class="form-control input-lg">
<option>CSS</option>
<option>XPath</option>
</select>
</div>
<div class="form-group">
<input type="text" class="form-control input-lg" id="expression" width="200px" name="expression"
placeholder="Locator"
autocomplete="off">
</div>
<a class="btn btn-info btn-lg" id="try" role="button" href="">Try!</a>
<button type="submit" class="btn btn-primary input-lg">Submit</button>
</form>
<div id="console"></div>
</div>
<!-- Modal -->
<div class="modal fade" id="share" tabindex="-1" role="dialog" aria-labelledby="share">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Share your result</h4>
</div>
<div class="modal-body">
<script>window.twttr = (function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function (f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script>
<a class="twitter-share-button"
href="https://twitter.com/intent/tweet?text=I%20just%20completed%20the%20%27locator%20game%27"
data-size="large"
data-hashtags="locator,selenium,softwaretesting"
data-url="http://locator-game.selenium-in-action.io/"
data-via="selenium_action">
Tweet</a>
</div>
</div>
</div>
</div>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-91022191-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>