-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
86 lines (75 loc) · 3.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>WebDriver Tester</title>
<!-- Bootstrap core CSS -->
<link href="dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/WebDriverTester.css" rel="stylesheet">
<script src="js/WebDriverTester.js"></script>
<script src="js/common.js"></script>
<!-- Bootstrap core JavaScript -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="dist/js/bootstrap.min.js"></script>
</head>
<body onload="setup()">
<!-- Header -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">WebDriver Tester</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="index.html">Send Requests</a></li>
<li><a href="Info.html">Info</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<!-- Request Info Contents -->
<div class="container">
<div class="request-info">
<h2>Request</h2>
<p>To send a request to Edge, specify a port and a command. Modify the command if needed and hit the "Send Request" button.</p>
<p>URL or IP (if left blank will use "http://localhost"): <input id="host" type="text" name="host"></p>
<p>Port: <input id="port" type="text" name="port" value="17556"></p>
<p>Quick commands:
<a onclick="quickCommand('get')">get</a>
<a onclick="quickCommand('findElement')">findElement</a>
<a onclick="quickCommand('screenshot')">screenshot</a>
<a onclick="quickCommand('moveto')">moveto</a>
</p>
<p>Command: <select id="commands-select" onchange="updateCommand()"></select></p>
<p>Method: <select id="methods-select"></select></p>
<p>Path: <input id="path" type="text"></p>
<p>Content Type:
<select id="content-type-select">
<option value="ct-json">application/json;charset=UTF-8</option>
<option value="ct-plain">text/plain</option>
</select>
</p>
<p>Content
<button id="format-json" onclick="formatJSON()">Format JSON</button>
<button onclick="sendRequest()">Send Request</button>
<br>
</p>
<textarea id="content-area"></textarea><br>
<p>Sessions <select onchange="updateCommand()" class="guid-select" id="session-select"></select></p>
<p>Elements <select onchange="updateCommand()" class="guid-select" id="element-select"></select></p>
</div>
</div><!-- /.container -->
<!-- Log -->
<div id="log-div" class="container">
<h2>Log</h2>
<button onclick="clearLog()">Clear Log</button>
<button onclick="clearElements()">Clear Element Ids</button>
<button onclick="clearAll()">Clear All</button>
<div id="log-contents"></div>
</div><!-- /.container -->
</body>
</html>