-
Notifications
You must be signed in to change notification settings - Fork 1
/
implicitly_wait.html
64 lines (53 loc) · 2.72 KB
/
implicitly_wait.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simple registration form</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"
integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"
integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T"
crossorigin="anonymous"></script>
<script src="jquery_min.js"></script>
</head>
<body class="bg-light">
<h3 class="timer">
<span class="nowrap" id="timeLeft">Time left:</span>
<span class="nowrap" id="countdown"></span>
</h3>
<div class="container" style="padding-top: 90px;">
</h2>Hello!</h2>
<p>Заполните поля этой формы с помощью методов find и разных локаторов. </p>
<p>Для поиска элементов задайте ожидание с помощью implicitly_wait(). </p>
<p>После заполнения формы нажмите кнопку Submit, чтобы увидеть проверочный код. </p>
<p><strong>Поля этой формы скоро загрузятся. Просто надо немного подождать..</strong></p>
<form action="#" method="get" onsubmit="showResult(10)">
<div class = "form-group">
<label>First name:*</label>
<!-- <input type="text" name="first_name" class = "form-control" required maxlength="32" placeholder="Enter your first name"> -->
</div>
<div class = "form-group">
<label>Last name:*</label>
<!-- <input type="text" name="last_name" class = "form-control" required maxlength="32"> -->
</div>
<div class = "form-group">
<label>City:*</label>
<!-- <input type="text" name="city" class = "form-control" required maxlength="32"> -->
</div>
<!-- <button type="submit" class="btn btn-default">Submit</button> -->
</form>
</div>
<script type="text/javascript">
var delay = Math.floor(Math.random() * (10000 - 3000)) + 3000;
window.onload = function() {
setTimeout(add_elts, delay);
};
</script>
</body>
</html>