@redhat-developer/locators 1.0.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/LICENSE +202 -0
- package/README.md +3 -0
- package/out/index.d.ts +1 -0
- package/out/index.js +32 -0
- package/out/lib/1.37.0.d.ts +5 -0
- package/out/lib/1.37.0.js +485 -0
- package/out/lib/1.38.0.d.ts +2 -0
- package/out/lib/1.38.0.js +13 -0
- package/out/lib/1.39.0.d.ts +2 -0
- package/out/lib/1.39.0.js +22 -0
- package/out/lib/1.40.0.d.ts +2 -0
- package/out/lib/1.40.0.js +13 -0
- package/out/lib/1.41.0.d.ts +2 -0
- package/out/lib/1.41.0.js +15 -0
- package/out/lib/1.43.0.d.ts +2 -0
- package/out/lib/1.43.0.js +16 -0
- package/out/lib/1.44.0.d.ts +2 -0
- package/out/lib/1.44.0.js +13 -0
- package/out/lib/1.45.0.d.ts +2 -0
- package/out/lib/1.45.0.js +22 -0
- package/out/lib/1.46.0.d.ts +2 -0
- package/out/lib/1.46.0.js +12 -0
- package/out/lib/1.47.0.d.ts +2 -0
- package/out/lib/1.47.0.js +18 -0
- package/out/lib/1.49.0.d.ts +2 -0
- package/out/lib/1.49.0.js +12 -0
- package/out/lib/1.50.0.d.ts +2 -0
- package/out/lib/1.50.0.js +12 -0
- package/out/lib/1.52.0.d.ts +2 -0
- package/out/lib/1.52.0.js +12 -0
- package/out/lib/1.54.0.d.ts +2 -0
- package/out/lib/1.54.0.js +13 -0
- package/out/lib/1.56.0.d.ts +2 -0
- package/out/lib/1.56.0.js +15 -0
- package/out/lib/1.57.0.d.ts +2 -0
- package/out/lib/1.57.0.js +15 -0
- package/out/lib/1.59.0.d.ts +2 -0
- package/out/lib/1.59.0.js +12 -0
- package/out/lib/1.60.0.d.ts +2 -0
- package/out/lib/1.60.0.js +11 -0
- package/out/lib/1.61.0.d.ts +2 -0
- package/out/lib/1.61.0.js +15 -0
- package/out/lib/1.66.0.d.ts +2 -0
- package/out/lib/1.66.0.js +16 -0
- package/out/lib/1.70.0.d.ts +2 -0
- package/out/lib/1.70.0.js +26 -0
- package/out/lib/1.71.0.d.ts +2 -0
- package/out/lib/1.71.0.js +18 -0
- package/out/lib/1.73.0.d.ts +2 -0
- package/out/lib/1.73.0.js +12 -0
- package/out/lib/1.74.0.d.ts +2 -0
- package/out/lib/1.74.0.js +13 -0
- package/out/lib/1.83.0.d.ts +2 -0
- package/out/lib/1.83.0.js +12 -0
- package/out/lib/1.84.0.d.ts +2 -0
- package/out/lib/1.84.0.js +12 -0
- package/out/lib/1.85.0.d.ts +2 -0
- package/out/lib/1.85.0.js +15 -0
- package/out/lib/1.87.0.d.ts +2 -0
- package/out/lib/1.87.0.js +42 -0
- package/package.json +42 -0
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.locators = void 0;
|
|
4
|
+
const page_objects_1 = require("@redhat-developer/page-objects");
|
|
5
|
+
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
6
|
+
const abstractElement = {
|
|
7
|
+
AbstractElement: {
|
|
8
|
+
enabled: (0, page_objects_1.hasNotClass)("disabled"),
|
|
9
|
+
selected: (0, page_objects_1.hasAttribute)('aria-selected', 'true')
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const activityBar = {
|
|
13
|
+
ActivityBar: {
|
|
14
|
+
constructor: selenium_webdriver_1.By.id('workbench.parts.activitybar'),
|
|
15
|
+
viewContainer: selenium_webdriver_1.By.xpath(`.//ul[@aria-label='Active View Switcher']`),
|
|
16
|
+
label: 'aria-label',
|
|
17
|
+
actionsContainer: selenium_webdriver_1.By.xpath(`.//ul[@aria-label='Manage']`),
|
|
18
|
+
actionItem: selenium_webdriver_1.By.className('action-item')
|
|
19
|
+
},
|
|
20
|
+
ViewControl: {
|
|
21
|
+
attribute: 'class',
|
|
22
|
+
klass: 'checked',
|
|
23
|
+
scmId: selenium_webdriver_1.By.id('workbench.view.scm'),
|
|
24
|
+
debugId: selenium_webdriver_1.By.id('workbench.view.debug'),
|
|
25
|
+
badge: selenium_webdriver_1.By.className('badge')
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const bottomBar = {
|
|
29
|
+
BottomBarPanel: {
|
|
30
|
+
constructor: selenium_webdriver_1.By.id('workbench.parts.panel'),
|
|
31
|
+
problemsTab: 'Problems',
|
|
32
|
+
outputTab: 'Output',
|
|
33
|
+
debugTab: 'Debug Console',
|
|
34
|
+
terminalTab: 'Terminal',
|
|
35
|
+
maximize: 'Maximize Panel Size',
|
|
36
|
+
restore: 'Restore Panel Size',
|
|
37
|
+
close: 'Close Panel',
|
|
38
|
+
tabContainer: selenium_webdriver_1.By.className('panel-switcher-container'),
|
|
39
|
+
tab: (title) => selenium_webdriver_1.By.xpath(`.//li[starts-with(@title, '${title}')]`),
|
|
40
|
+
actions: selenium_webdriver_1.By.className('title-actions'),
|
|
41
|
+
globalActions: selenium_webdriver_1.By.className('title-actions'),
|
|
42
|
+
action: (label) => selenium_webdriver_1.By.xpath(`.//a[starts-with(@title, '${label}')]`),
|
|
43
|
+
closeAction: selenium_webdriver_1.By.className('codicon-panel-close')
|
|
44
|
+
},
|
|
45
|
+
BottomBarViews: {
|
|
46
|
+
actionsContainer: (label) => selenium_webdriver_1.By.xpath(`.//ul[@aria-label='${label}']`),
|
|
47
|
+
channelOption: selenium_webdriver_1.By.css('option'),
|
|
48
|
+
channelCombo: selenium_webdriver_1.By.css('select'),
|
|
49
|
+
channelText: selenium_webdriver_1.By.className('option-text'),
|
|
50
|
+
channelRow: selenium_webdriver_1.By.className('monaco-list-row'),
|
|
51
|
+
textArea: selenium_webdriver_1.By.css('textarea'),
|
|
52
|
+
clearText: selenium_webdriver_1.By.className('clear-output')
|
|
53
|
+
},
|
|
54
|
+
ProblemsView: {
|
|
55
|
+
constructor: selenium_webdriver_1.By.id('workbench.panel.markers'),
|
|
56
|
+
markersFilter: selenium_webdriver_1.By.className('markers-panel-action-filter'),
|
|
57
|
+
input: selenium_webdriver_1.By.css('input'),
|
|
58
|
+
collapseAll: selenium_webdriver_1.By.className('collapse-all'),
|
|
59
|
+
markerRow: selenium_webdriver_1.By.className('monaco-list-row'),
|
|
60
|
+
rowLabel: 'aria-label',
|
|
61
|
+
label: selenium_webdriver_1.By.className('monaco-highlighted-label'),
|
|
62
|
+
markerTwistie: selenium_webdriver_1.By.className('monaco-tl-twistie'),
|
|
63
|
+
changeCount: selenium_webdriver_1.By.className('monaco-count-badge')
|
|
64
|
+
},
|
|
65
|
+
TerminalView: {
|
|
66
|
+
constructor: selenium_webdriver_1.By.id('workbench.panel.terminal'),
|
|
67
|
+
actionsLabel: 'Terminal actions',
|
|
68
|
+
textArea: selenium_webdriver_1.By.className('xterm-helper-textarea'),
|
|
69
|
+
killTerminal: selenium_webdriver_1.By.xpath(`.//a[@title='Kill Terminal']`),
|
|
70
|
+
newTerminal: selenium_webdriver_1.By.xpath(`.//a[starts-with(@title,'New Terminal')]`),
|
|
71
|
+
tabList: selenium_webdriver_1.By.className('tabs-list'),
|
|
72
|
+
singleTab: selenium_webdriver_1.By.className('single-terminal-tab'),
|
|
73
|
+
selectedRow: selenium_webdriver_1.By.className('monaco-list-row selected'),
|
|
74
|
+
row: selenium_webdriver_1.By.className('monaco-list-row'),
|
|
75
|
+
newCommand: 'terminal: create new integrated terminal'
|
|
76
|
+
},
|
|
77
|
+
DebugConsoleView: {
|
|
78
|
+
constructor: selenium_webdriver_1.By.id('workbench.panel.repl')
|
|
79
|
+
},
|
|
80
|
+
OutputView: {
|
|
81
|
+
constructor: selenium_webdriver_1.By.id('workbench.panel.output'),
|
|
82
|
+
actionsLabel: 'Output actions',
|
|
83
|
+
optionByName: (name) => selenium_webdriver_1.By.xpath(`.//option[@value='${name}']`)
|
|
84
|
+
},
|
|
85
|
+
WebviewView: {
|
|
86
|
+
iframe: selenium_webdriver_1.By.xpath(`//div[not(@class)]/iframe[@class='webview ready' and not(@data-parent-flow-to-element-id)]`)
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const editor = {
|
|
90
|
+
EditorView: {
|
|
91
|
+
constructor: selenium_webdriver_1.By.id('workbench.parts.editor'),
|
|
92
|
+
editorGroup: selenium_webdriver_1.By.className('editor-group-container'),
|
|
93
|
+
settingsEditor: selenium_webdriver_1.By.id('workbench.editor.settings2'),
|
|
94
|
+
webView: selenium_webdriver_1.By.id('WebviewEditor'),
|
|
95
|
+
diffEditor: selenium_webdriver_1.By.className('monaco-diff-editor'),
|
|
96
|
+
tab: selenium_webdriver_1.By.className('tab'),
|
|
97
|
+
closeTab: selenium_webdriver_1.By.className('tab-close'),
|
|
98
|
+
tabTitle: 'title',
|
|
99
|
+
tabSeparator: ', tab',
|
|
100
|
+
tabLabel: 'aria-label',
|
|
101
|
+
actionContainer: selenium_webdriver_1.By.className('editor-actions'),
|
|
102
|
+
actionItem: selenium_webdriver_1.By.className('action-label'),
|
|
103
|
+
attribute: 'title'
|
|
104
|
+
},
|
|
105
|
+
Editor: {
|
|
106
|
+
constructor: selenium_webdriver_1.By.className('editor-instance'),
|
|
107
|
+
inputArea: selenium_webdriver_1.By.className('inputarea'),
|
|
108
|
+
title: selenium_webdriver_1.By.className('label-name')
|
|
109
|
+
},
|
|
110
|
+
TextEditor: {
|
|
111
|
+
activeTab: selenium_webdriver_1.By.css('div.tab.active'),
|
|
112
|
+
breakpoint: {
|
|
113
|
+
pauseSelector: selenium_webdriver_1.By.className('codicon-debug-stackframe'),
|
|
114
|
+
generalSelector: selenium_webdriver_1.By.className('codicon-debug-breakpoint'),
|
|
115
|
+
properties: {
|
|
116
|
+
enabled: (0, page_objects_1.hasNotClass)('codicon-debug-breakpoint-unverified'),
|
|
117
|
+
line: {
|
|
118
|
+
selector: selenium_webdriver_1.By.className('line-numbers'),
|
|
119
|
+
number: (line) => line.getText().then((line) => Number.parseInt(line))
|
|
120
|
+
},
|
|
121
|
+
paused: (0, page_objects_1.hasClass)('codicon-debug-stackframe'),
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
editorContainer: selenium_webdriver_1.By.className('monaco-editor'),
|
|
125
|
+
dataUri: 'data-uri',
|
|
126
|
+
formatDoc: 'Format Document',
|
|
127
|
+
marginArea: selenium_webdriver_1.By.className('margin-view-overlays'),
|
|
128
|
+
lineNumber: (line) => selenium_webdriver_1.By.xpath(`.//div[contains(@class, 'line-numbers') and text() = '${line}']`),
|
|
129
|
+
lineOverlay: (line) => selenium_webdriver_1.By.xpath(`.//div[contains(@class, 'line-numbers') and text() = '${line}']/..`),
|
|
130
|
+
debugHint: selenium_webdriver_1.By.className('codicon-debug-hint'),
|
|
131
|
+
selection: selenium_webdriver_1.By.className('cslr selected-text top-left-radius bottom-left-radius top-right-radius bottom-right-radius'),
|
|
132
|
+
findWidget: selenium_webdriver_1.By.className('find-widget')
|
|
133
|
+
},
|
|
134
|
+
FindWidget: {
|
|
135
|
+
toggleReplace: selenium_webdriver_1.By.xpath(`.//div[@title="Toggle Replace mode"]`),
|
|
136
|
+
replacePart: selenium_webdriver_1.By.className('replace-part'),
|
|
137
|
+
findPart: selenium_webdriver_1.By.className('find-part'),
|
|
138
|
+
matchCount: selenium_webdriver_1.By.className('matchesCount'),
|
|
139
|
+
input: selenium_webdriver_1.By.css('textarea'),
|
|
140
|
+
content: selenium_webdriver_1.By.className('mirror'),
|
|
141
|
+
button: (title) => selenium_webdriver_1.By.xpath(`.//div[@role='button' and starts-with(@title, "${title}")]`),
|
|
142
|
+
checkbox: (title) => selenium_webdriver_1.By.xpath(`.//div[@role='checkbox' and starts-with(@title, "${title}")]`)
|
|
143
|
+
},
|
|
144
|
+
ContentAssist: {
|
|
145
|
+
constructor: selenium_webdriver_1.By.className('suggest-widget'),
|
|
146
|
+
message: selenium_webdriver_1.By.className('message'),
|
|
147
|
+
itemRows: selenium_webdriver_1.By.className('monaco-list-rows'),
|
|
148
|
+
itemRow: selenium_webdriver_1.By.className('monaco-list-row'),
|
|
149
|
+
itemLabel: selenium_webdriver_1.By.className('label-name'),
|
|
150
|
+
itemText: selenium_webdriver_1.By.xpath(`./span/span`),
|
|
151
|
+
itemList: selenium_webdriver_1.By.className('monaco-list'),
|
|
152
|
+
firstItem: selenium_webdriver_1.By.xpath(`.//div[@data-index='0']`)
|
|
153
|
+
},
|
|
154
|
+
SettingsEditor: {
|
|
155
|
+
title: 'Settings',
|
|
156
|
+
itemRow: selenium_webdriver_1.By.className('monaco-list-row'),
|
|
157
|
+
header: selenium_webdriver_1.By.className('settings-header'),
|
|
158
|
+
tabs: selenium_webdriver_1.By.className('settings-tabs-widget'),
|
|
159
|
+
actions: selenium_webdriver_1.By.className('actions-container'),
|
|
160
|
+
action: (label) => selenium_webdriver_1.By.xpath(`.//a[@title='${label}']`),
|
|
161
|
+
settingConstructor: (title, category) => selenium_webdriver_1.By.xpath(`.//div[@class='monaco-tl-row' and .//span/text()='${title}' and .//span/text()='${category}: ']`),
|
|
162
|
+
settingDesctiption: selenium_webdriver_1.By.className('setting-item-description'),
|
|
163
|
+
settingLabel: selenium_webdriver_1.By.className('setting-item-label'),
|
|
164
|
+
settingCategory: selenium_webdriver_1.By.className('setting-item-category'),
|
|
165
|
+
comboSetting: selenium_webdriver_1.By.css('select'),
|
|
166
|
+
comboOption: selenium_webdriver_1.By.className('option-text'),
|
|
167
|
+
comboValue: 'title',
|
|
168
|
+
textSetting: selenium_webdriver_1.By.css('input'),
|
|
169
|
+
checkboxSetting: selenium_webdriver_1.By.className('setting-value-checkbox'),
|
|
170
|
+
checkboxChecked: 'aria-checked',
|
|
171
|
+
linkButton: selenium_webdriver_1.By.className('edit-in-settings-button'),
|
|
172
|
+
itemCount: selenium_webdriver_1.By.className('settings-count-widget')
|
|
173
|
+
},
|
|
174
|
+
DiffEditor: {
|
|
175
|
+
originalEditor: selenium_webdriver_1.By.className('original-in-monaco-diff-editor'),
|
|
176
|
+
modifiedEditor: selenium_webdriver_1.By.className('modified-in-monaco-diff-editor')
|
|
177
|
+
},
|
|
178
|
+
WebView: {
|
|
179
|
+
iframe: selenium_webdriver_1.By.css(`iframe[class='webview ready']`),
|
|
180
|
+
activeFrame: selenium_webdriver_1.By.id('active-frame'),
|
|
181
|
+
container: (id) => selenium_webdriver_1.By.id(id),
|
|
182
|
+
attribute: 'aria-flowto'
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
const menu = {
|
|
186
|
+
ContextMenu: {
|
|
187
|
+
contextView: selenium_webdriver_1.By.className('context-view'),
|
|
188
|
+
constructor: selenium_webdriver_1.By.className('monaco-menu-container'),
|
|
189
|
+
itemConstructor: (label) => selenium_webdriver_1.By.xpath(`.//li[a/span/@aria-label="${label}"]`),
|
|
190
|
+
itemElement: selenium_webdriver_1.By.className('action-item'),
|
|
191
|
+
itemLabel: selenium_webdriver_1.By.className('action-label'),
|
|
192
|
+
itemText: 'aria-label',
|
|
193
|
+
itemNesting: selenium_webdriver_1.By.className('submenu-indicator'),
|
|
194
|
+
viewBlock: selenium_webdriver_1.By.className('context-view-block')
|
|
195
|
+
},
|
|
196
|
+
TitleBar: {
|
|
197
|
+
constructor: selenium_webdriver_1.By.id('workbench.parts.titlebar'),
|
|
198
|
+
itemConstructor: (label) => selenium_webdriver_1.By.xpath(`.//div[@aria-label="${label}"]`),
|
|
199
|
+
itemElement: selenium_webdriver_1.By.className('menubar-menu-button'),
|
|
200
|
+
itemLabel: 'aria-label',
|
|
201
|
+
title: selenium_webdriver_1.By.className('window-title')
|
|
202
|
+
},
|
|
203
|
+
WindowControls: {
|
|
204
|
+
constructor: selenium_webdriver_1.By.className('window-controls-container'),
|
|
205
|
+
minimize: selenium_webdriver_1.By.className('window-minimize'),
|
|
206
|
+
maximize: selenium_webdriver_1.By.className('window-maximize'),
|
|
207
|
+
restore: selenium_webdriver_1.By.className('window-unmaximize'),
|
|
208
|
+
close: selenium_webdriver_1.By.className('window-close')
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
const sideBar = {
|
|
212
|
+
SideBarView: {
|
|
213
|
+
constructor: selenium_webdriver_1.By.id('workbench.parts.sidebar')
|
|
214
|
+
},
|
|
215
|
+
ViewTitlePart: {
|
|
216
|
+
constructor: selenium_webdriver_1.By.className('composite title'),
|
|
217
|
+
title: selenium_webdriver_1.By.css('h2'),
|
|
218
|
+
action: selenium_webdriver_1.By.className(`action-label`),
|
|
219
|
+
actionLabel: 'title',
|
|
220
|
+
actionConstructor: (title) => selenium_webdriver_1.By.xpath(`.//a[@title='${title}']`)
|
|
221
|
+
},
|
|
222
|
+
ViewContent: {
|
|
223
|
+
constructor: selenium_webdriver_1.By.className('content'),
|
|
224
|
+
progress: selenium_webdriver_1.By.className('monaco-progress-container'),
|
|
225
|
+
section: selenium_webdriver_1.By.className('split-view-view'),
|
|
226
|
+
defaultView: selenium_webdriver_1.By.className('explorer-folders-view'),
|
|
227
|
+
extensionsView: selenium_webdriver_1.By.className('extensions-list')
|
|
228
|
+
},
|
|
229
|
+
ViewSection: {
|
|
230
|
+
title: selenium_webdriver_1.By.className('title'),
|
|
231
|
+
titleText: 'textContent',
|
|
232
|
+
header: selenium_webdriver_1.By.className('panel-header'),
|
|
233
|
+
headerExpanded: 'aria-expanded',
|
|
234
|
+
actions: selenium_webdriver_1.By.className('actions'),
|
|
235
|
+
actionConstructor: (label) => selenium_webdriver_1.By.xpath(`.//a[contains(@class, 'action-label') and @role='button' and @title='${label}']`),
|
|
236
|
+
button: selenium_webdriver_1.By.xpath(`.//a[@role='button']`),
|
|
237
|
+
buttonLabel: 'title',
|
|
238
|
+
level: 'aria-level',
|
|
239
|
+
index: 'data-index',
|
|
240
|
+
welcomeContent: selenium_webdriver_1.By.className('welcome-view')
|
|
241
|
+
},
|
|
242
|
+
TreeItem: {
|
|
243
|
+
actions: selenium_webdriver_1.By.className('actions-container'),
|
|
244
|
+
actionLabel: selenium_webdriver_1.By.className('action-label'),
|
|
245
|
+
actionTitle: 'title',
|
|
246
|
+
twistie: selenium_webdriver_1.By.className('monaco-tl-twistie')
|
|
247
|
+
},
|
|
248
|
+
DefaultTreeSection: {
|
|
249
|
+
itemRow: selenium_webdriver_1.By.className('monaco-list-row'),
|
|
250
|
+
itemLabel: 'aria-label',
|
|
251
|
+
rowContainer: selenium_webdriver_1.By.className('monaco-list'),
|
|
252
|
+
rowWithLabel: (label) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @aria-label='${label}']`),
|
|
253
|
+
lastRow: selenium_webdriver_1.By.xpath(`.//div[@data-last-element='true']`),
|
|
254
|
+
type: {
|
|
255
|
+
default: (0, page_objects_1.hasElement)((locators) => locators.ViewContent.defaultView),
|
|
256
|
+
marketplace: {
|
|
257
|
+
extension: (0, page_objects_1.hasElement)((locators) => locators.ViewContent.extensionsView)
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
DefaultTreeItem: {
|
|
262
|
+
ctor: (label) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @aria-label='${label}']`),
|
|
263
|
+
twistie: selenium_webdriver_1.By.className('monaco-tl-twistie'),
|
|
264
|
+
tooltip: selenium_webdriver_1.By.className('explorer-item'),
|
|
265
|
+
labelAttribute: 'title'
|
|
266
|
+
},
|
|
267
|
+
CustomTreeSection: {
|
|
268
|
+
itemRow: selenium_webdriver_1.By.className('monaco-list-row'),
|
|
269
|
+
itemLabel: selenium_webdriver_1.By.className('monaco-highlighted-label'),
|
|
270
|
+
rowContainer: selenium_webdriver_1.By.className('monaco-list'),
|
|
271
|
+
rowWithLabel: (label) => selenium_webdriver_1.By.xpath(`.//span[text()='${label}']`)
|
|
272
|
+
},
|
|
273
|
+
CustomTreeItem: {
|
|
274
|
+
constructor: (label) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and .//span[text()='${label}']]`),
|
|
275
|
+
tooltipAttribute: 'aria-label',
|
|
276
|
+
expandedAttr: 'aria-expanded',
|
|
277
|
+
expandedValue: 'true',
|
|
278
|
+
description: selenium_webdriver_1.By.className('label-description'),
|
|
279
|
+
},
|
|
280
|
+
DebugBreakpointSection: {
|
|
281
|
+
predicate: async (section) => (await section.getTitle()).toLowerCase() === 'breakpoints'
|
|
282
|
+
},
|
|
283
|
+
BreakpointSectionItem: {
|
|
284
|
+
breakpoint: {
|
|
285
|
+
constructor: selenium_webdriver_1.By.className('codicon')
|
|
286
|
+
},
|
|
287
|
+
breakpointCheckbox: {
|
|
288
|
+
constructor: selenium_webdriver_1.By.css('input[type=checkbox'),
|
|
289
|
+
value: (el) => el.isSelected()
|
|
290
|
+
},
|
|
291
|
+
label: {
|
|
292
|
+
constructor: selenium_webdriver_1.By.className('name'),
|
|
293
|
+
value: (0, page_objects_1.fromText)()
|
|
294
|
+
},
|
|
295
|
+
filePath: {
|
|
296
|
+
constructor: selenium_webdriver_1.By.className('file-path'),
|
|
297
|
+
value: (0, page_objects_1.fromText)()
|
|
298
|
+
},
|
|
299
|
+
lineNumber: {
|
|
300
|
+
constructor: selenium_webdriver_1.By.className('line-number'),
|
|
301
|
+
value: (0, page_objects_1.fromText)()
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
DebugVariableSection: {
|
|
305
|
+
predicate: async (section) => (await section.getTitle()).toLowerCase() === 'variables'
|
|
306
|
+
},
|
|
307
|
+
VariableSectionItem: {
|
|
308
|
+
label: (0, page_objects_1.fromText)(selenium_webdriver_1.By.className('monaco-highlighted-label')),
|
|
309
|
+
name: {
|
|
310
|
+
constructor: selenium_webdriver_1.By.className('name'),
|
|
311
|
+
value: (0, page_objects_1.fromText)(),
|
|
312
|
+
tooltip: (0, page_objects_1.fromAttribute)('title', selenium_webdriver_1.By.className('monaco-highlighted-label'))
|
|
313
|
+
},
|
|
314
|
+
value: {
|
|
315
|
+
constructor: selenium_webdriver_1.By.className('value'),
|
|
316
|
+
value: (0, page_objects_1.fromText)(),
|
|
317
|
+
tooltip: (0, page_objects_1.fromAttribute)('title')
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
ExtensionsViewSection: {
|
|
321
|
+
items: selenium_webdriver_1.By.className('monaco-list-rows'),
|
|
322
|
+
itemRow: selenium_webdriver_1.By.className('monaco-list-row'),
|
|
323
|
+
itemTitle: selenium_webdriver_1.By.className('name'),
|
|
324
|
+
searchBox: selenium_webdriver_1.By.className('inputarea'),
|
|
325
|
+
textContainer: selenium_webdriver_1.By.className('view-line'),
|
|
326
|
+
textField: selenium_webdriver_1.By.className('mtk1')
|
|
327
|
+
},
|
|
328
|
+
ExtensionsViewItem: {
|
|
329
|
+
version: selenium_webdriver_1.By.className('version'),
|
|
330
|
+
author: selenium_webdriver_1.By.className('author'),
|
|
331
|
+
description: selenium_webdriver_1.By.className('description'),
|
|
332
|
+
install: selenium_webdriver_1.By.className('install'),
|
|
333
|
+
manage: selenium_webdriver_1.By.className('manage')
|
|
334
|
+
},
|
|
335
|
+
ScmView: {
|
|
336
|
+
providerHeader: selenium_webdriver_1.By.css(`div[class*='panel-header scm-provider']`),
|
|
337
|
+
providerRelative: selenium_webdriver_1.By.xpath(`./..`),
|
|
338
|
+
initButton: selenium_webdriver_1.By.xpath(`.//a[text()='Initialize Repository']`),
|
|
339
|
+
providerTitle: selenium_webdriver_1.By.className('title'),
|
|
340
|
+
providerType: selenium_webdriver_1.By.className('type'),
|
|
341
|
+
action: selenium_webdriver_1.By.className('action-label'),
|
|
342
|
+
actionConstructor: (title) => selenium_webdriver_1.By.xpath(`.//a[@title='${title}']`),
|
|
343
|
+
actionLabel: 'title',
|
|
344
|
+
inputField: selenium_webdriver_1.By.css('textarea'),
|
|
345
|
+
changeItem: selenium_webdriver_1.By.xpath(`.//div[@role='treeitem']`),
|
|
346
|
+
changeName: selenium_webdriver_1.By.className('name'),
|
|
347
|
+
changeCount: selenium_webdriver_1.By.className('monaco-count-badge'),
|
|
348
|
+
changeLabel: selenium_webdriver_1.By.className('label-name'),
|
|
349
|
+
changeDesc: selenium_webdriver_1.By.className('label-description'),
|
|
350
|
+
resource: selenium_webdriver_1.By.className('resource'),
|
|
351
|
+
changes: selenium_webdriver_1.By.xpath(`.//div[@role="treeitem" and .//div/text()="CHANGES"]`),
|
|
352
|
+
stagedChanges: selenium_webdriver_1.By.xpath(`.//div[@role="treeitem" and .//div/text()="STAGED CHANGES"]`),
|
|
353
|
+
expand: selenium_webdriver_1.By.className('monaco-tl-twistie'),
|
|
354
|
+
more: selenium_webdriver_1.By.className('toolbar-toggle-more'),
|
|
355
|
+
multiMore: selenium_webdriver_1.By.className('codicon-toolbar-more'),
|
|
356
|
+
multiScmProvider: selenium_webdriver_1.By.className('scm-provider'),
|
|
357
|
+
singleScmProvider: selenium_webdriver_1.By.className(`scm-view`),
|
|
358
|
+
multiProviderItem: selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @aria-level='1']`),
|
|
359
|
+
itemLevel: (level) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @aria-level='${level}']`),
|
|
360
|
+
itemIndex: (index) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @data-index='${index}']`)
|
|
361
|
+
},
|
|
362
|
+
DebugView: {
|
|
363
|
+
launchCombo: selenium_webdriver_1.By.className('start-debug-action-item'),
|
|
364
|
+
launchSelect: selenium_webdriver_1.By.css('select'),
|
|
365
|
+
launchOption: selenium_webdriver_1.By.css('option'),
|
|
366
|
+
optionByName: (name) => selenium_webdriver_1.By.xpath(`.//option[@value='${name}']`),
|
|
367
|
+
startButton: selenium_webdriver_1.By.className('codicon-debug-start')
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
const statusBar = {
|
|
371
|
+
StatusBar: {
|
|
372
|
+
constructor: selenium_webdriver_1.By.id('workbench.parts.statusbar'),
|
|
373
|
+
language: selenium_webdriver_1.By.id('status.editor.mode'),
|
|
374
|
+
lines: selenium_webdriver_1.By.id('status.editor.eol'),
|
|
375
|
+
encoding: selenium_webdriver_1.By.id('status.editor.encoding'),
|
|
376
|
+
indent: selenium_webdriver_1.By.id('status.editor.indentation'),
|
|
377
|
+
selection: selenium_webdriver_1.By.id('status.editor.selection'),
|
|
378
|
+
notifications: selenium_webdriver_1.By.className('notifications-center'),
|
|
379
|
+
bell: selenium_webdriver_1.By.id('status.notifications'),
|
|
380
|
+
item: selenium_webdriver_1.By.className('statusbar-item'),
|
|
381
|
+
itemTitle: 'aria-label'
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
const workbench = {
|
|
385
|
+
Workbench: {
|
|
386
|
+
constructor: selenium_webdriver_1.By.className('monaco-workbench'),
|
|
387
|
+
notificationContainer: selenium_webdriver_1.By.className('notification-toast-container'),
|
|
388
|
+
notificationItem: selenium_webdriver_1.By.className('monaco-list-row')
|
|
389
|
+
},
|
|
390
|
+
Notification: {
|
|
391
|
+
message: selenium_webdriver_1.By.className('notification-list-item-message'),
|
|
392
|
+
icon: selenium_webdriver_1.By.className('notification-list-item-icon'),
|
|
393
|
+
source: selenium_webdriver_1.By.className('notification-list-item-source'),
|
|
394
|
+
progress: selenium_webdriver_1.By.className('monaco-progress-container'),
|
|
395
|
+
dismiss: selenium_webdriver_1.By.className('clear-notification-action'),
|
|
396
|
+
expand: selenium_webdriver_1.By.className('codicon-notifications-expand'),
|
|
397
|
+
actions: selenium_webdriver_1.By.className('notification-list-item-buttons-container'),
|
|
398
|
+
action: selenium_webdriver_1.By.className('monaco-button'),
|
|
399
|
+
actionLabel: {
|
|
400
|
+
value: (0, page_objects_1.fromAttribute)('title')
|
|
401
|
+
},
|
|
402
|
+
standalone: (id) => selenium_webdriver_1.By.xpath(`.//div[contains(@class, 'monaco-list-row') and @id='${id}']`),
|
|
403
|
+
standaloneContainer: selenium_webdriver_1.By.className('notifications-toasts'),
|
|
404
|
+
center: (index) => selenium_webdriver_1.By.xpath(`.//div[contains(@class, 'monaco-list-row') and @data-index='${index}']`),
|
|
405
|
+
buttonConstructor: (title) => selenium_webdriver_1.By.xpath(`.//a[@role='button' and @title='${title}']`)
|
|
406
|
+
},
|
|
407
|
+
NotificationsCenter: {
|
|
408
|
+
constructor: selenium_webdriver_1.By.className('notifications-center'),
|
|
409
|
+
close: selenium_webdriver_1.By.className('hide-all-notifications-action'),
|
|
410
|
+
clear: selenium_webdriver_1.By.className('clear-all-notifications-action'),
|
|
411
|
+
row: selenium_webdriver_1.By.className('monaco-list-row')
|
|
412
|
+
},
|
|
413
|
+
DebugToolbar: {
|
|
414
|
+
ctor: selenium_webdriver_1.By.className('debug-toolbar'),
|
|
415
|
+
button: (title) => selenium_webdriver_1.By.className(`codicon-debug-${title}`)
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
const input = {
|
|
419
|
+
Input: {
|
|
420
|
+
inputBox: selenium_webdriver_1.By.className('monaco-inputbox'),
|
|
421
|
+
input: selenium_webdriver_1.By.className('input'),
|
|
422
|
+
quickPickIndex: (index) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @data-index='${index}']`),
|
|
423
|
+
quickPickPosition: (index) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @aria-posinset='${index}']`),
|
|
424
|
+
quickPickLabel: selenium_webdriver_1.By.className('label-name'),
|
|
425
|
+
quickPickDescription: selenium_webdriver_1.By.className('label-description'),
|
|
426
|
+
quickPickSelectAll: selenium_webdriver_1.By.className('quick-input-check-all'),
|
|
427
|
+
titleBar: selenium_webdriver_1.By.className('quick-input-titlebar'),
|
|
428
|
+
title: selenium_webdriver_1.By.className('quick-input-title'),
|
|
429
|
+
backButton: selenium_webdriver_1.By.className('codicon-quick-input-back'),
|
|
430
|
+
multiSelectIndex: (index) => selenium_webdriver_1.By.xpath(`.//div[@role='treeitem' and @data-index='${index}']`)
|
|
431
|
+
},
|
|
432
|
+
InputBox: {
|
|
433
|
+
constructor: selenium_webdriver_1.By.className('quick-input-widget'),
|
|
434
|
+
message: selenium_webdriver_1.By.className('quick-input-message'),
|
|
435
|
+
progress: selenium_webdriver_1.By.className('quick-input-progress'),
|
|
436
|
+
quickList: selenium_webdriver_1.By.className('quick-input-list'),
|
|
437
|
+
rows: selenium_webdriver_1.By.className('monaco-list-rows'),
|
|
438
|
+
row: selenium_webdriver_1.By.className('monaco-list-row')
|
|
439
|
+
},
|
|
440
|
+
QuickOpenBox: {
|
|
441
|
+
constructor: selenium_webdriver_1.By.className('monaco-quick-open-widget'),
|
|
442
|
+
progress: selenium_webdriver_1.By.className('monaco-progress-container'),
|
|
443
|
+
quickList: selenium_webdriver_1.By.className('quick-open-tree'),
|
|
444
|
+
row: selenium_webdriver_1.By.xpath(`.//div[@role='treeitem']`)
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
const dialog = {
|
|
448
|
+
Dialog: {
|
|
449
|
+
constructor: selenium_webdriver_1.By.className('monaco-dialog-box'),
|
|
450
|
+
message: selenium_webdriver_1.By.className('dialog-message-text'),
|
|
451
|
+
details: selenium_webdriver_1.By.className('dialog-message-detail'),
|
|
452
|
+
buttonContainer: selenium_webdriver_1.By.className('dialog-buttons-row'),
|
|
453
|
+
button: selenium_webdriver_1.By.className('monaco-text-button'),
|
|
454
|
+
closeButton: selenium_webdriver_1.By.className('codicon-dialog-close'),
|
|
455
|
+
buttonLabel: {
|
|
456
|
+
value: (0, page_objects_1.fromAttribute)('title')
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
const welcomeContentButtonSelector = ".//a[@class='monaco-button monaco-text-button']";
|
|
461
|
+
const welcomeContentTextSelector = ".//p";
|
|
462
|
+
const welcome = {
|
|
463
|
+
WelcomeContent: {
|
|
464
|
+
button: selenium_webdriver_1.By.xpath(welcomeContentButtonSelector),
|
|
465
|
+
buttonOrText: selenium_webdriver_1.By.xpath(`${welcomeContentButtonSelector} | ${welcomeContentTextSelector}`),
|
|
466
|
+
text: selenium_webdriver_1.By.xpath(welcomeContentTextSelector)
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* All available locators for vscode version 1.37.0
|
|
471
|
+
*/
|
|
472
|
+
exports.locators = {
|
|
473
|
+
...abstractElement,
|
|
474
|
+
...activityBar,
|
|
475
|
+
...bottomBar,
|
|
476
|
+
...editor,
|
|
477
|
+
...menu,
|
|
478
|
+
...sideBar,
|
|
479
|
+
...statusBar,
|
|
480
|
+
...workbench,
|
|
481
|
+
...input,
|
|
482
|
+
...dialog,
|
|
483
|
+
...welcome
|
|
484
|
+
};
|
|
485
|
+
//# sourceMappingURL=1.37.0.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diff = void 0;
|
|
4
|
+
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
5
|
+
exports.diff = {
|
|
6
|
+
locators: {
|
|
7
|
+
EditorView: {
|
|
8
|
+
settingsEditor: selenium_webdriver_1.By.xpath(`.//div[@data-editor-id='workbench.editor.settings2']`),
|
|
9
|
+
webView: selenium_webdriver_1.By.xpath(`.//div[@data-editor-id='WebviewEditor']`)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=1.38.0.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diff = void 0;
|
|
4
|
+
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
5
|
+
exports.diff = {
|
|
6
|
+
locators: {
|
|
7
|
+
BottomBarViews: {
|
|
8
|
+
clearText: selenium_webdriver_1.By.className('codicon-clear-all')
|
|
9
|
+
},
|
|
10
|
+
NotificationsCenter: {
|
|
11
|
+
close: selenium_webdriver_1.By.className('codicon-chevron-down'),
|
|
12
|
+
clear: selenium_webdriver_1.By.className('codicon-close-all')
|
|
13
|
+
},
|
|
14
|
+
Notification: {
|
|
15
|
+
dismiss: selenium_webdriver_1.By.className('codicon-close')
|
|
16
|
+
},
|
|
17
|
+
ScmView: {
|
|
18
|
+
more: selenium_webdriver_1.By.className('codicon-more')
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=1.39.0.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diff = void 0;
|
|
4
|
+
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
5
|
+
exports.diff = {
|
|
6
|
+
locators: {
|
|
7
|
+
NotificationsCenter: {
|
|
8
|
+
close: selenium_webdriver_1.By.className('codicon-close'),
|
|
9
|
+
clear: selenium_webdriver_1.By.className('codicon-clear-all')
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=1.40.0.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diff = void 0;
|
|
4
|
+
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
5
|
+
exports.diff = {
|
|
6
|
+
locators: {
|
|
7
|
+
ViewSection: {
|
|
8
|
+
header: selenium_webdriver_1.By.className('pane-header')
|
|
9
|
+
},
|
|
10
|
+
ScmView: {
|
|
11
|
+
providerHeader: selenium_webdriver_1.By.css(`div[class*='pane-header scm-provider']`)
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=1.41.0.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diff = void 0;
|
|
4
|
+
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
5
|
+
exports.diff = {
|
|
6
|
+
locators: {
|
|
7
|
+
Input: {
|
|
8
|
+
quickPickIndex: (index) => selenium_webdriver_1.By.xpath(`.//div[@role='listitem' and @data-index='${index}']`),
|
|
9
|
+
multiSelectIndex: (index) => selenium_webdriver_1.By.xpath(`.//div[@role='listitem' and @data-index='${index}']`)
|
|
10
|
+
},
|
|
11
|
+
NotificationsCenter: {
|
|
12
|
+
close: selenium_webdriver_1.By.className('codicon-chevron-down')
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=1.43.0.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diff = void 0;
|
|
4
|
+
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
5
|
+
exports.diff = {
|
|
6
|
+
locators: {
|
|
7
|
+
Input: {
|
|
8
|
+
quickPickIndex: (index) => selenium_webdriver_1.By.xpath(`.//div[@role='option' and @data-index='${index}']`),
|
|
9
|
+
multiSelectIndex: (index) => selenium_webdriver_1.By.xpath(`.//div[@role='option' and @data-index='${index}']`)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=1.44.0.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diff = void 0;
|
|
4
|
+
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
5
|
+
exports.diff = {
|
|
6
|
+
locators: {
|
|
7
|
+
EditorView: {
|
|
8
|
+
tabSeparator: ''
|
|
9
|
+
},
|
|
10
|
+
NotificationsCenter: {
|
|
11
|
+
clear: selenium_webdriver_1.By.className('codicon-notifications-clear-all'),
|
|
12
|
+
close: selenium_webdriver_1.By.className('codicon-notifications-hide')
|
|
13
|
+
},
|
|
14
|
+
Notification: {
|
|
15
|
+
dismiss: selenium_webdriver_1.By.className('codicon-notifications-clear')
|
|
16
|
+
},
|
|
17
|
+
ScmView: {
|
|
18
|
+
more: selenium_webdriver_1.By.className('codicon-toolbar-more')
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=1.45.0.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diff = void 0;
|
|
4
|
+
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
5
|
+
exports.diff = {
|
|
6
|
+
locators: {
|
|
7
|
+
CustomTreeItem: {
|
|
8
|
+
constructor: (label) => selenium_webdriver_1.By.xpath(`.//div[@role='listitem' and .//span[text()='${label}']]`)
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=1.46.0.js.map
|