testcentricity_web 4.1.9 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +96 -1
  3. data/README.md +88 -48
  4. data/lib/testcentricity_web/browser_helper.rb +2 -1
  5. data/lib/testcentricity_web/data_objects/environment.rb +0 -1
  6. data/lib/testcentricity_web/version.rb +1 -1
  7. data/lib/testcentricity_web/web_core/page_objects_helper.rb +40 -3
  8. data/lib/testcentricity_web/web_core/webdriver_helper.rb +89 -80
  9. data/lib/testcentricity_web/web_elements/media.rb +108 -0
  10. data/lib/testcentricity_web/web_elements/textfield.rb +28 -0
  11. data/lib/testcentricity_web/web_elements/ui_elements_helper.rb +39 -1
  12. metadata +37 -181
  13. data/.gitignore +0 -39
  14. data/.idea/.name +0 -1
  15. data/.idea/encodings.xml +0 -6
  16. data/.idea/misc.xml +0 -4
  17. data/.idea/modules.xml +0 -8
  18. data/.idea/vcs.xml +0 -7
  19. data/.rspec +0 -4
  20. data/.rubocop.yml +0 -38
  21. data/.ruby-version +0 -1
  22. data/.simplecov +0 -9
  23. data/CODE_OF_CONDUCT.md +0 -13
  24. data/Gemfile +0 -6
  25. data/Rakefile +0 -115
  26. data/config/cucumber.yml +0 -171
  27. data/config/locales/en-US.yml +0 -56
  28. data/config/test_data/LOCAL_data.json +0 -15
  29. data/config/test_data/LOCAL_data.xls +0 -0
  30. data/config/test_data/LOCAL_data.yml +0 -11
  31. data/config/test_data/data.json +0 -25
  32. data/config/test_data/data.xls +0 -0
  33. data/config/test_data/data.yml +0 -20
  34. data/docker-compose.yml +0 -48
  35. data/features/basic_form_page_css.feature +0 -54
  36. data/features/basic_form_page_xpath.feature +0 -26
  37. data/features/custom_controls.feature +0 -29
  38. data/features/media_players.feature +0 -67
  39. data/features/step_definitions/generic_steps.rb.rb +0 -124
  40. data/features/step_definitions/media_steps.rb +0 -30
  41. data/features/support/data/form_data.rb +0 -43
  42. data/features/support/env.rb +0 -51
  43. data/features/support/hooks.rb +0 -270
  44. data/features/support/pages/base_test_page.rb +0 -22
  45. data/features/support/pages/basic_css_form_page.rb +0 -53
  46. data/features/support/pages/basic_form_page.rb +0 -429
  47. data/features/support/pages/basic_xpath_form_page.rb +0 -54
  48. data/features/support/pages/custom_controls_page.rb +0 -263
  49. data/features/support/pages/indexed_sections_page.rb +0 -57
  50. data/features/support/pages/media_test_page.rb +0 -207
  51. data/features/support/sections/header_nav.rb +0 -48
  52. data/features/support/sections/product_card.rb +0 -39
  53. data/features/support/world_data.rb +0 -12
  54. data/features/support/world_pages.rb +0 -18
  55. data/reports/.keep +0 -1
  56. data/spec/fixtures/page_object.rb +0 -22
  57. data/spec/fixtures/section_object.rb +0 -21
  58. data/spec/spec_helper.rb +0 -31
  59. data/spec/testcentricity_web/browser_spec.rb +0 -41
  60. data/spec/testcentricity_web/elements/audio_spec.rb +0 -68
  61. data/spec/testcentricity_web/elements/button_spec.rb +0 -18
  62. data/spec/testcentricity_web/elements/checkbox_spec.rb +0 -33
  63. data/spec/testcentricity_web/elements/file_field_spec.rb +0 -13
  64. data/spec/testcentricity_web/elements/image_spec.rb +0 -33
  65. data/spec/testcentricity_web/elements/label_spec.rb +0 -18
  66. data/spec/testcentricity_web/elements/link_spec.rb +0 -23
  67. data/spec/testcentricity_web/elements/list_spec.rb +0 -13
  68. data/spec/testcentricity_web/elements/radio_spec.rb +0 -28
  69. data/spec/testcentricity_web/elements/ui_element_spec.rb +0 -125
  70. data/spec/testcentricity_web/elements/video_spec.rb +0 -68
  71. data/spec/testcentricity_web/helper_specs/object_helpers_spec.rb +0 -39
  72. data/spec/testcentricity_web/helper_specs/string_helpers_spec.rb +0 -49
  73. data/spec/testcentricity_web/page_object_spec.rb +0 -90
  74. data/spec/testcentricity_web/section_object_spec.rb +0 -72
  75. data/spec/testcentricity_web/version_spec.rb +0 -7
  76. data/spec/testcentricity_web/webdriver_connect/grid_webdriver_spec.rb +0 -72
  77. data/spec/testcentricity_web/webdriver_connect/local_webdriver_spec.rb +0 -86
  78. data/spec/testcentricity_web/webdriver_connect/mobile_webdriver_spec.rb +0 -65
  79. data/test_site/basic_test_page.html +0 -290
  80. data/test_site/chosen-sprite.png +0 -0
  81. data/test_site/chosen-sprite@2x.png +0 -0
  82. data/test_site/chosen.css +0 -496
  83. data/test_site/chosen.jquery.js +0 -1359
  84. data/test_site/chosen.jquery.min.js +0 -3
  85. data/test_site/chosen.min.css +0 -11
  86. data/test_site/chosen.proto.js +0 -1399
  87. data/test_site/chosen.proto.min.js +0 -3
  88. data/test_site/composer.json +0 -36
  89. data/test_site/custom_controls_page.html +0 -629
  90. data/test_site/docsupport/chosen.png +0 -0
  91. data/test_site/docsupport/init.js +0 -11
  92. data/test_site/docsupport/init.proto.js +0 -16
  93. data/test_site/docsupport/jquery-1.12.4.min.js +0 -5
  94. data/test_site/docsupport/jquery-3.2.1.min.js +0 -4
  95. data/test_site/docsupport/oss-credit.png +0 -0
  96. data/test_site/docsupport/prism.css +0 -108
  97. data/test_site/docsupport/prism.js +0 -9
  98. data/test_site/docsupport/prototype-1.7.0.0.js +0 -6082
  99. data/test_site/docsupport/style.css +0 -219
  100. data/test_site/images/Blouse_Black.jpg +0 -0
  101. data/test_site/images/Granny.jpg +0 -0
  102. data/test_site/images/Printed_Dress.jpg +0 -0
  103. data/test_site/images/T-shirt.jpg +0 -0
  104. data/test_site/images/Wilder.jpg +0 -0
  105. data/test_site/images/You_Betcha.jpg +0 -0
  106. data/test_site/images/jeans3.jpg +0 -0
  107. data/test_site/indexed_sections_page.html +0 -215
  108. data/test_site/media/MIB2-subtitles-pt-BR.vtt +0 -49
  109. data/test_site/media/MIB2.mp4 +0 -0
  110. data/test_site/media/MP4_small.mp4 +0 -0
  111. data/test_site/media/MPS_sample.mp3 +0 -0
  112. data/test_site/media/bbc_scotland_report.mp3 +0 -0
  113. data/test_site/media/count_and_bars.mp4 +0 -0
  114. data/test_site/media_page.html +0 -86
  115. data/testcentricity_web.gemspec +0 -57
@@ -1,290 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Basic HTML Form</title>
6
- <style>
7
- table {
8
- font-family: arial, sans-serif;
9
- font-size: 15px;
10
- border-collapse: collapse;
11
- width: 85%;
12
- }
13
- td, th {
14
- border: 1px solid #dddddd;
15
- text-align: left;
16
- padding: 8px;
17
- }
18
- body {
19
- margin: 0;
20
- font-family: Arial, Helvetica, sans-serif;
21
- }
22
- .topnav {
23
- overflow: hidden;
24
- background-color: #333;
25
- }
26
- .topnav a {
27
- float: left;
28
- color: #f2f2f2;
29
- text-align: center;
30
- padding: 12px 14px;
31
- text-decoration: none;
32
- font-size: 15px;
33
- }
34
- .topnav a:hover {
35
- background-color: #ddd;
36
- color: black;
37
- }
38
- .topnav a.active {
39
- background-color: #04AA6D;
40
- color: white;
41
- }
42
- </style>
43
- </head>
44
- <body>
45
- <div class="page-body">
46
- <h2 id="header">Basic HTML Form</h2>
47
-
48
- <div id="nav_bar" class="topnav">
49
- <a id="form_link" class="active" href="#">Basic HTML Form</a>
50
- <a id="media_link" href="media_page.html">Media</a>
51
- <a id="indexed_sections_link" href="indexed_sections_page.html">Indexed Sections</a>
52
- <a id="custom_controls_link" href="custom_controls_page.html">Custom Controls</a>
53
- </div>
54
-
55
-
56
- <div class="centered">
57
- <form name="HTMLFormElements" id="HTMLFormElements">
58
- <table border="1" cellpadding="5">
59
- <tr>
60
- <td>
61
- <table>
62
- <label id="inputs">Inputs:</label>
63
- <tbody>
64
- <tr>
65
- <td>
66
- <label for="username">Username:</label>
67
- <input type="text" id="username" name="username" placeholder="User name" required>
68
- </td>
69
- <td>
70
- <label for="password">Password:</label>
71
- <input type="password" id="password" name="password" placeholder="Password" required>
72
- </td>
73
- <td>
74
- <label for="maxlength">Max Length:</label>
75
- <input type="text" id="maxlength" name="maxlength" placeholder="up to 64 characters" maxlength="64">
76
- </td>
77
- </tr>
78
- <tr>
79
- <td>
80
- <label for="readonly">Read Only:</label>
81
- <input type="text" id="readonly" name="readonly" value="I am a read only text field" readonly>
82
- </td>
83
- <td>
84
- <label for="number-field">Number:</label>
85
- <input id="number-field" type="number" name="number" min="10" max="1024" step="1" value="41">
86
- </td>
87
- <td>
88
- <label for="color-picker">Color: </label>
89
- <input id="color-picker" type="color" name="color">
90
- </td>
91
- </tr>
92
- <tr>
93
- <td>
94
- <label for="slider">Range: </label>
95
- <input id="slider" type="range" name="slider" min="0" max="50">
96
- </td>
97
- <td>
98
- </td>
99
- <td>
100
- </td>
101
- </tr>
102
- </tbody>
103
- </table>
104
- </td>
105
- </tr>
106
-
107
-
108
- <tr>
109
- <td>
110
- <label for="comments">TextArea:</label>
111
- <textarea id="comments" name="comments" cols="80" rows="3"></textarea>
112
- </td>
113
- </tr>
114
-
115
- <tr>
116
- <td>
117
- <label for="filename">Filename:</label>
118
- <input type="file" id="filename" name="filename" size="35">
119
- </td>
120
- </tr>
121
-
122
- <tr>
123
- <td>
124
- <label id="checkboxes">Checkbox Items:</label>
125
- <input type="checkbox" id="check1" name="checkboxes[]" value="cb1" />Checkbox 1
126
- <input type="checkbox" id="check2" name="checkboxes[]" value="cb2" />Checkbox 2
127
- <input type="checkbox" id="check3" name="checkboxes[]" value="cb3" />Checkbox 3
128
- <input type="checkbox" id="check4" name="checkboxes[]" value="cb4" disabled/>Checkbox 4
129
- </td>
130
- </tr>
131
-
132
- <tr>
133
- <td>
134
- <label id="radios">Radio Items:</label>
135
- <input type="radio" id="radio1" name="radioval" value="rd1" />radio 1
136
- <input type="radio" id="radio2" name="radioval" value="rd2" />radio 2
137
- <input type="radio" id="radio3" name="radioval" value="rd3" />radio 3
138
- <input type="radio" id="radio4" name="radioval" value="rd4" disabled/>radio 4
139
- </td>
140
- </tr>
141
-
142
- <tr>
143
- <td>
144
- <label for="multipleselect">Multiple Select Values:</label>
145
- <select multiple="multiple" id="multipleselect" name="multipleselect" size="4">
146
- <option value="ms1">Selection Item 1</option>
147
- <option value="ms2">Selection Item 2</option>
148
- <option value="ms3">Selection Item 3</option>
149
- <option value="ms4">Selection Item 4</option>
150
- </select>
151
- </td>
152
- </tr>
153
-
154
- <tr>
155
- <td>
156
- <label for="dropdown">Dropdown:</label>
157
- <select id="dropdown" name="dropdown">
158
- <option value="dd1">Drop Down Item 1</option>
159
- <option value="dd2">Drop Down Item 2</option>
160
- <option value="dd3">Drop Down Item 3</option>
161
- <option value="dd4">Drop Down Item 4</option>
162
- <option value="dd5">Drop Down Item 5</option>
163
- <option value="dd6">Drop Down Item 6</option>
164
- </select>
165
- </td>
166
- </tr>
167
-
168
- <tr>
169
- <td>
170
- <label id="links">Links:</label>
171
- <ul id="links_list">
172
- <li>
173
- <a id="link1" href="media_page.html">Open Media Page in same window/tab</a>
174
- </li>
175
- <li>
176
- <a id="link2" href="media_page.html" target="_blank">Open Media Page in a new window/tab</a>
177
- </li>
178
- <li>
179
- <a id="link3" role="link" aria-disabled="true">Disabled Link</a>
180
- </li>
181
- </ul>
182
- </td>
183
- </tr>
184
-
185
- <tr>
186
- <td>
187
- <label for="table">Table:</label>
188
- <table id="table">
189
- <thead>
190
- <tr>
191
- <th>Company</th>
192
- <th>Contact</th>
193
- <th>Country</th>
194
- </tr>
195
- </thead>
196
- <tbody>
197
- <tr>
198
- <td>Alfreds Futterkiste</td>
199
- <td>Maria Anders</td>
200
- <td>Germany</td>
201
- </tr>
202
- <tr>
203
- <td>Centro comercial Moctezuma</td>
204
- <td>Francisco Chang</td>
205
- <td>Mexico</td>
206
- </tr>
207
- <tr>
208
- <td>Ernst Handel</td>
209
- <td>Roland Mendel</td>
210
- <td>Austria</td>
211
- </tr>
212
- <tr>
213
- <td>Island Trading</td>
214
- <td>Helen Bennett</td>
215
- <td>UK</td>
216
- </tr>
217
- </tbody>
218
- </table>
219
- </td>
220
- </tr>
221
-
222
- <tr>
223
- <td>
224
- <table>
225
- <label id="images">Images:</label>
226
- <tbody>
227
- <tr>
228
- <td>
229
- <img id="image1" src="images/Wilder.jpg" alt="It's alive" style="width:225px;height:225px;">
230
- </td>
231
- <td>
232
- <img id="image2" src="images/You_Betcha.jpg" alt="You Betcha" style="width:225px;height:225px;">
233
- </td>
234
- <td>
235
- <img id="image3" src="wrongname.gif" alt="A broken image" style="width:225px;height:225px;">
236
- </td>
237
- </tr>
238
- </tbody>
239
- </table>
240
- </td>
241
- </tr>
242
-
243
-
244
-
245
- <!-- <tr>-->
246
- <!-- <td>-->
247
- <!-- <div class="form-label">-->
248
- <!-- <label for="date-picker">Date: </label>-->
249
- <!-- <input id="date-picker" type="date" name="date">-->
250
- <!-- </div>-->
251
- <!-- </td>-->
252
- <!-- </tr>-->
253
- <!-- <tr>-->
254
- <!-- <td>-->
255
- <!-- <div class="form-label">-->
256
- <!-- <label for="date-time-picker">Local date time:</label>-->
257
- <!-- <input id="date-time-picker" type="datetime-local" name="datetime" value="2018-01-01T01:01">-->
258
- <!-- </div>-->
259
- <!-- </td>-->
260
- <!-- </tr>-->
261
- <!-- <tr>-->
262
- <!-- <td>-->
263
- <!-- <div class="form-label">-->
264
- <!-- <label for="email-field">Email: </label>-->
265
- <!-- <input id="email-field" type="email" name="email" value="bob@mailinator.com">-->
266
- <!-- </div>-->
267
- <!-- </td>-->
268
- <!-- </tr>-->
269
- <!-- <tr>-->
270
- <!-- <td>-->
271
- <!-- <div class="form-label">-->
272
- <!-- <label for="month-field">Month: </label>-->
273
- <!-- <input id="month-field" type="month" name="month">-->
274
- <!-- </div>-->
275
- <!-- </td>-->
276
- <!-- </tr>-->
277
-
278
-
279
- <tr>
280
- <td>
281
- <input type="reset" id="cancel" name="cancel" value="Cancel" class="styled-click-button">
282
- <input type="submit" id="submit" name="submit" value="Submit" class="styled-click-button">
283
- </td>
284
- </tr>
285
- </table>
286
- </form>
287
- </div>
288
- </div>
289
- </body>
290
- </html>
Binary file
Binary file