@redhat-developer/locators 1.6.2 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/lib/1.37.0.js +38 -0
- package/out/lib/1.59.0.js +2 -0
- package/package.json +2 -2
package/out/lib/1.37.0.js
CHANGED
|
@@ -23,6 +23,7 @@ const abstractElement = {
|
|
|
23
23
|
AbstractElement: {
|
|
24
24
|
enabled: (0, page_objects_1.hasNotClass)('disabled'),
|
|
25
25
|
selected: (0, page_objects_1.hasAttribute)('aria-selected', 'true'),
|
|
26
|
+
tag: selenium_webdriver_1.By.css('html'),
|
|
26
27
|
},
|
|
27
28
|
};
|
|
28
29
|
const activityBar = {
|
|
@@ -57,6 +58,7 @@ const bottomBar = {
|
|
|
57
58
|
globalActions: selenium_webdriver_1.By.className('title-actions'),
|
|
58
59
|
action: (label) => selenium_webdriver_1.By.xpath(`.//a[starts-with(@title, '${label}')]`),
|
|
59
60
|
closeAction: selenium_webdriver_1.By.className('codicon-panel-close'),
|
|
61
|
+
openTabElement: (title) => selenium_webdriver_1.By.xpath(`.//a[starts-with(@aria-label, '${title}')]`),
|
|
60
62
|
},
|
|
61
63
|
BottomBarViews: {
|
|
62
64
|
actionsContainer: (label) => selenium_webdriver_1.By.xpath(`.//ul[@aria-label='${label}']`),
|
|
@@ -147,6 +149,13 @@ const editor = {
|
|
|
147
149
|
debugHint: selenium_webdriver_1.By.className('codicon-debug-hint'),
|
|
148
150
|
selection: selenium_webdriver_1.By.className('cslr selected-text top-left-radius bottom-left-radius top-right-radius bottom-right-radius'),
|
|
149
151
|
findWidget: selenium_webdriver_1.By.className('find-widget'),
|
|
152
|
+
shadowRootHost: selenium_webdriver_1.By.className('shadow-root-host'),
|
|
153
|
+
monacoMenuContainer: selenium_webdriver_1.By.className('monaco-menu-container'),
|
|
154
|
+
glyphMarginWidget: selenium_webdriver_1.By.className('glyph-margin-widgets'),
|
|
155
|
+
lineElement: (styleTopAttr) => selenium_webdriver_1.By.xpath(`.//div[contains(@style, "${styleTopAttr}")]`),
|
|
156
|
+
contentWidgets: selenium_webdriver_1.By.className('contentWidgets'),
|
|
157
|
+
contentWidgetsElements: selenium_webdriver_1.By.xpath(`.//span[contains(@widgetid, 'codelens.widget')]/a[@id]`),
|
|
158
|
+
elementLevelBack: selenium_webdriver_1.By.xpath('./..'),
|
|
150
159
|
},
|
|
151
160
|
FindWidget: {
|
|
152
161
|
toggleReplace: selenium_webdriver_1.By.xpath(`.//div[@title="Toggle Replace mode"]`),
|
|
@@ -157,6 +166,9 @@ const editor = {
|
|
|
157
166
|
content: selenium_webdriver_1.By.className('mirror'),
|
|
158
167
|
button: (title) => selenium_webdriver_1.By.xpath(`.//div[@role='button' and starts-with(@title, "${title}")]`),
|
|
159
168
|
checkbox: (title) => selenium_webdriver_1.By.xpath(`.//div[@role='checkbox' and starts-with(@title, "${title}")]`),
|
|
169
|
+
nextMatch: 'Next match',
|
|
170
|
+
previousMatch: 'Previous match',
|
|
171
|
+
closePart: 'find',
|
|
160
172
|
},
|
|
161
173
|
ContentAssist: {
|
|
162
174
|
constructor: selenium_webdriver_1.By.className('suggest-widget'),
|
|
@@ -197,6 +209,7 @@ const editor = {
|
|
|
197
209
|
arraySettingItem: {
|
|
198
210
|
btnConstructor: (label) => selenium_webdriver_1.By.xpath(`.//a[contains(@role, 'button') and text()='${label}']`),
|
|
199
211
|
},
|
|
212
|
+
button: selenium_webdriver_1.By.className('monaco-button'),
|
|
200
213
|
},
|
|
201
214
|
DiffEditor: {
|
|
202
215
|
originalEditor: selenium_webdriver_1.By.className('original-in-monaco-diff-editor'),
|
|
@@ -229,6 +242,10 @@ const editor = {
|
|
|
229
242
|
moreInfo: selenium_webdriver_1.By.className('more-info-entry'),
|
|
230
243
|
moreInfoElements: selenium_webdriver_1.By.xpath('./*'),
|
|
231
244
|
},
|
|
245
|
+
EditorAction: {
|
|
246
|
+
shadowRootHost: selenium_webdriver_1.By.className('shadow-root-host'),
|
|
247
|
+
monacoMenuContainer: selenium_webdriver_1.By.className('monaco-menu-container'),
|
|
248
|
+
},
|
|
232
249
|
};
|
|
233
250
|
const menu = {
|
|
234
251
|
ContextMenu: {
|
|
@@ -286,6 +303,8 @@ const sideBar = {
|
|
|
286
303
|
level: 'aria-level',
|
|
287
304
|
index: 'data-index',
|
|
288
305
|
welcomeContent: selenium_webdriver_1.By.className('welcome-view'),
|
|
306
|
+
shadowRootHost: selenium_webdriver_1.By.className('shadow-root-host'),
|
|
307
|
+
monacoMenuContainer: selenium_webdriver_1.By.className('monaco-menu-container'),
|
|
289
308
|
},
|
|
290
309
|
TreeItem: {
|
|
291
310
|
actions: selenium_webdriver_1.By.className('actions-container'),
|
|
@@ -372,6 +391,19 @@ const sideBar = {
|
|
|
372
391
|
label: selenium_webdriver_1.By.className('monaco-highlighted-label'),
|
|
373
392
|
text: selenium_webdriver_1.By.className('state label monaco-count-badge long'),
|
|
374
393
|
},
|
|
394
|
+
WatchSection: {
|
|
395
|
+
predicate: async (section) => (await section.getTitle()).toLowerCase() === 'watch',
|
|
396
|
+
input: selenium_webdriver_1.By.css('input'),
|
|
397
|
+
addExpression: 'Add Expression',
|
|
398
|
+
refresh: 'Refresh',
|
|
399
|
+
removeAll: 'Remove All Expressions',
|
|
400
|
+
collapseAll: 'Collapse All',
|
|
401
|
+
},
|
|
402
|
+
WatchSectionItem: {
|
|
403
|
+
label: selenium_webdriver_1.By.className('monaco-highlighted-label'),
|
|
404
|
+
value: selenium_webdriver_1.By.xpath(`.//*[contains(@class, 'value ') and starts-with(@class, 'value ')]`),
|
|
405
|
+
remove: 'Remove Expression',
|
|
406
|
+
},
|
|
375
407
|
ExtensionsViewSection: {
|
|
376
408
|
items: selenium_webdriver_1.By.className('monaco-list-rows'),
|
|
377
409
|
itemRow: selenium_webdriver_1.By.className('monaco-list-row'),
|
|
@@ -413,6 +445,9 @@ const sideBar = {
|
|
|
413
445
|
multiProviderItem: selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @aria-level='1']`),
|
|
414
446
|
itemLevel: (level) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @aria-level='${level}']`),
|
|
415
447
|
itemIndex: (index) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @data-index='${index}']`),
|
|
448
|
+
shadowRootHost: selenium_webdriver_1.By.className('shadow-root-host'),
|
|
449
|
+
monacoMenuContainer: selenium_webdriver_1.By.className('monaco-menu-container'),
|
|
450
|
+
sourceControlSection: selenium_webdriver_1.By.xpath(`.//div[@aria-label='Source Control Section']`),
|
|
416
451
|
},
|
|
417
452
|
DebugView: {
|
|
418
453
|
launchCombo: selenium_webdriver_1.By.className('start-debug-action-item'),
|
|
@@ -434,6 +469,7 @@ const statusBar = {
|
|
|
434
469
|
bell: selenium_webdriver_1.By.id('status.notifications'),
|
|
435
470
|
item: selenium_webdriver_1.By.className('statusbar-item'),
|
|
436
471
|
itemTitle: 'aria-label',
|
|
472
|
+
aTag: selenium_webdriver_1.By.css('a'),
|
|
437
473
|
},
|
|
438
474
|
};
|
|
439
475
|
const workbench = {
|
|
@@ -484,6 +520,8 @@ const input = {
|
|
|
484
520
|
title: selenium_webdriver_1.By.className('quick-input-title'),
|
|
485
521
|
backButton: selenium_webdriver_1.By.className('codicon-quick-input-back'),
|
|
486
522
|
multiSelectIndex: (index) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @data-index='${index}']`),
|
|
523
|
+
button: selenium_webdriver_1.By.xpath(`.//a[@role='button']`),
|
|
524
|
+
buttonLabel: 'title',
|
|
487
525
|
},
|
|
488
526
|
InputBox: {
|
|
489
527
|
constructor: selenium_webdriver_1.By.className('quick-input-widget'),
|
package/out/lib/1.59.0.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redhat-developer/locators",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Pluggable Page Objects locators for an ExTester framework.",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@redhat-developer/page-objects": ">=1.0.0",
|
|
41
41
|
"selenium-webdriver": ">=4.6.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "6e684d06e92ee59f19e28f96158f8798045114c3"
|
|
44
44
|
}
|