@redhat-developer/locators 1.7.0 → 1.9.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/index.js +17 -7
- package/out/lib/1.37.0.js +25 -0
- package/out/lib/1.59.0.js +2 -0
- package/package.json +2 -2
package/out/index.js
CHANGED
|
@@ -31,13 +31,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
31
31
|
}) : function(o, v) {
|
|
32
32
|
o["default"] = v;
|
|
33
33
|
});
|
|
34
|
-
var __importStar = (this && this.__importStar) || function (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
34
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
35
|
+
var ownKeys = function(o) {
|
|
36
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
37
|
+
var ar = [];
|
|
38
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
39
|
+
return ar;
|
|
40
|
+
};
|
|
41
|
+
return ownKeys(o);
|
|
42
|
+
};
|
|
43
|
+
return function (mod) {
|
|
44
|
+
if (mod && mod.__esModule) return mod;
|
|
45
|
+
var result = {};
|
|
46
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
47
|
+
__setModuleDefault(result, mod);
|
|
48
|
+
return result;
|
|
49
|
+
};
|
|
50
|
+
})();
|
|
41
51
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
52
|
exports.getLocatorsPath = getLocatorsPath;
|
|
43
53
|
const path = __importStar(require("path"));
|
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'),
|
|
@@ -426,6 +445,9 @@ const sideBar = {
|
|
|
426
445
|
multiProviderItem: selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @aria-level='1']`),
|
|
427
446
|
itemLevel: (level) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @aria-level='${level}']`),
|
|
428
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']`),
|
|
429
451
|
},
|
|
430
452
|
DebugView: {
|
|
431
453
|
launchCombo: selenium_webdriver_1.By.className('start-debug-action-item'),
|
|
@@ -447,6 +469,7 @@ const statusBar = {
|
|
|
447
469
|
bell: selenium_webdriver_1.By.id('status.notifications'),
|
|
448
470
|
item: selenium_webdriver_1.By.className('statusbar-item'),
|
|
449
471
|
itemTitle: 'aria-label',
|
|
472
|
+
aTag: selenium_webdriver_1.By.css('a'),
|
|
450
473
|
},
|
|
451
474
|
};
|
|
452
475
|
const workbench = {
|
|
@@ -497,6 +520,8 @@ const input = {
|
|
|
497
520
|
title: selenium_webdriver_1.By.className('quick-input-title'),
|
|
498
521
|
backButton: selenium_webdriver_1.By.className('codicon-quick-input-back'),
|
|
499
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',
|
|
500
525
|
},
|
|
501
526
|
InputBox: {
|
|
502
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.9.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": "ee887332c09744c7446d3182f6ae3946c2b5a050"
|
|
44
44
|
}
|