@redhat-developer/page-objects 1.1.0 → 1.1.2
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/components/AbstractElement.d.ts +18 -2
- package/out/components/AbstractElement.js +18 -2
- package/out/components/ElementWithContextMenu.d.ts +18 -2
- package/out/components/ElementWithContextMenu.js +16 -0
- package/out/components/WebviewMixin.d.ts +18 -2
- package/out/components/WebviewMixin.js +16 -0
- package/out/components/activityBar/ActionsControl.d.ts +19 -3
- package/out/components/activityBar/ActionsControl.js +16 -0
- package/out/components/activityBar/ActivityBar.d.ts +18 -2
- package/out/components/activityBar/ActivityBar.js +16 -0
- package/out/components/activityBar/ViewControl.d.ts +19 -3
- package/out/components/activityBar/ViewControl.js +16 -0
- package/out/components/bottomBar/AbstractViews.d.ts +20 -4
- package/out/components/bottomBar/AbstractViews.js +24 -7
- package/out/components/bottomBar/BottomBarPanel.d.ts +18 -2
- package/out/components/bottomBar/BottomBarPanel.js +18 -3
- package/out/components/bottomBar/ProblemsView.d.ts +19 -3
- package/out/components/bottomBar/ProblemsView.js +23 -5
- package/out/components/bottomBar/Views.d.ts +19 -3
- package/out/components/bottomBar/Views.js +17 -1
- package/out/components/bottomBar/WebviewView.d.ts +18 -2
- package/out/components/bottomBar/WebviewView.js +16 -0
- package/out/components/dialog/ModalDialog.d.ts +18 -2
- package/out/components/dialog/ModalDialog.js +17 -1
- package/out/components/editor/Breakpoint.d.ts +16 -0
- package/out/components/editor/Breakpoint.js +16 -0
- package/out/components/editor/ContentAssist.d.ts +17 -1
- package/out/components/editor/ContentAssist.js +22 -5
- package/out/components/editor/CustomEditor.d.ts +17 -1
- package/out/components/editor/CustomEditor.js +16 -0
- package/out/components/editor/DiffEditor.d.ts +16 -0
- package/out/components/editor/DiffEditor.js +16 -0
- package/out/components/editor/Editor.d.ts +18 -2
- package/out/components/editor/Editor.js +17 -1
- package/out/components/editor/EditorAction.d.ts +19 -3
- package/out/components/editor/EditorAction.js +16 -0
- package/out/components/editor/EditorView.d.ts +21 -5
- package/out/components/editor/EditorView.js +28 -7
- package/out/components/editor/SettingsEditor.d.ts +27 -11
- package/out/components/editor/SettingsEditor.js +36 -19
- package/out/components/editor/TextEditor.d.ts +22 -6
- package/out/components/editor/TextEditor.js +31 -13
- package/out/components/editor/WebView.d.ts +18 -2
- package/out/components/editor/WebView.js +18 -2
- package/out/components/menu/ContextMenu.d.ts +18 -2
- package/out/components/menu/ContextMenu.js +18 -2
- package/out/components/menu/MacTitleBar.d.ts +16 -0
- package/out/components/menu/MacTitleBar.js +17 -5
- package/out/components/menu/Menu.d.ts +18 -2
- package/out/components/menu/Menu.js +18 -2
- package/out/components/menu/MenuItem.d.ts +18 -2
- package/out/components/menu/MenuItem.js +17 -1
- package/out/components/menu/TitleBar.d.ts +19 -3
- package/out/components/menu/TitleBar.js +18 -2
- package/out/components/menu/WindowControls.d.ts +18 -2
- package/out/components/menu/WindowControls.js +16 -0
- package/out/components/sidebar/SideBarView.d.ts +18 -2
- package/out/components/sidebar/SideBarView.js +16 -0
- package/out/components/sidebar/ViewContent.d.ts +20 -4
- package/out/components/sidebar/ViewContent.js +17 -2
- package/out/components/sidebar/ViewItem.d.ts +19 -3
- package/out/components/sidebar/ViewItem.js +23 -7
- package/out/components/sidebar/ViewSection.d.ts +19 -3
- package/out/components/sidebar/ViewSection.js +23 -7
- package/out/components/sidebar/ViewTitlePart.d.ts +19 -3
- package/out/components/sidebar/ViewTitlePart.js +16 -0
- package/out/components/sidebar/WelcomeContent.d.ts +19 -3
- package/out/components/sidebar/WelcomeContent.js +17 -1
- package/out/components/sidebar/debug/DebugView.d.ts +19 -3
- package/out/components/sidebar/debug/DebugView.js +16 -0
- package/out/components/sidebar/extensions/ExtensionsViewItem.d.ts +20 -4
- package/out/components/sidebar/extensions/ExtensionsViewItem.js +16 -0
- package/out/components/sidebar/extensions/ExtensionsViewSection.d.ts +18 -2
- package/out/components/sidebar/extensions/ExtensionsViewSection.js +19 -3
- package/out/components/sidebar/scm/NewScmView.d.ts +18 -2
- package/out/components/sidebar/scm/NewScmView.js +30 -14
- package/out/components/sidebar/scm/ScmView.d.ts +21 -5
- package/out/components/sidebar/scm/ScmView.js +24 -8
- package/out/components/sidebar/tree/TreeSection.d.ts +19 -3
- package/out/components/sidebar/tree/TreeSection.js +20 -4
- package/out/components/sidebar/tree/custom/CustomTreeItem.d.ts +19 -3
- package/out/components/sidebar/tree/custom/CustomTreeItem.js +16 -0
- package/out/components/sidebar/tree/custom/CustomTreeSection.d.ts +21 -5
- package/out/components/sidebar/tree/custom/CustomTreeSection.js +18 -2
- package/out/components/sidebar/tree/debug/BreakpointSectionItem.d.ts +20 -4
- package/out/components/sidebar/tree/debug/BreakpointSectionItem.js +17 -1
- package/out/components/sidebar/tree/debug/DebugBreakpointSection.d.ts +20 -4
- package/out/components/sidebar/tree/debug/DebugBreakpointSection.js +16 -0
- package/out/components/sidebar/tree/debug/DebugVariablesSection.d.ts +20 -4
- package/out/components/sidebar/tree/debug/DebugVariablesSection.js +16 -0
- package/out/components/sidebar/tree/debug/SectionBreakpoint.d.ts +17 -1
- package/out/components/sidebar/tree/debug/SectionBreakpoint.js +16 -0
- package/out/components/sidebar/tree/debug/VariableSectionItem.d.ts +20 -3
- package/out/components/sidebar/tree/debug/VariableSectionItem.js +20 -0
- package/out/components/sidebar/tree/default/DefaultTreeItem.d.ts +19 -3
- package/out/components/sidebar/tree/default/DefaultTreeItem.js +16 -0
- package/out/components/sidebar/tree/default/DefaultTreeSection.d.ts +18 -2
- package/out/components/sidebar/tree/default/DefaultTreeSection.js +17 -1
- package/out/components/statusBar/StatusBar.d.ts +19 -3
- package/out/components/statusBar/StatusBar.js +17 -1
- package/out/components/workbench/DebugToolbar.d.ts +17 -1
- package/out/components/workbench/DebugToolbar.js +16 -0
- package/out/components/workbench/Notification.d.ts +19 -3
- package/out/components/workbench/Notification.js +17 -2
- package/out/components/workbench/NotificationsCenter.d.ts +18 -2
- package/out/components/workbench/NotificationsCenter.js +17 -1
- package/out/components/workbench/Workbench.d.ts +28 -12
- package/out/components/workbench/Workbench.js +17 -1
- package/out/components/workbench/input/Input.d.ts +17 -1
- package/out/components/workbench/input/Input.js +29 -20
- package/out/components/workbench/input/InputBox.d.ts +17 -1
- package/out/components/workbench/input/InputBox.js +20 -5
- package/out/components/workbench/input/QuickOpenBox.d.ts +17 -1
- package/out/components/workbench/input/QuickOpenBox.js +18 -3
- package/out/conditions/WaitForAttribute.d.ts +17 -1
- package/out/conditions/WaitForAttribute.js +16 -0
- package/out/errors/NullAttributeError.d.ts +16 -0
- package/out/errors/NullAttributeError.js +16 -0
- package/out/index.d.ts +16 -0
- package/out/index.js +16 -0
- package/out/locators/loader.d.ts +16 -0
- package/out/locators/loader.js +24 -8
- package/out/locators/locators.d.ts +24 -8
- package/out/locators/locators.js +17 -1
- package/package.json +2 -2
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright ownership.
|
|
6
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
8
|
+
* the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
19
|
exports.TitleBarItem = exports.TitleBar = void 0;
|
|
4
20
|
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
@@ -66,11 +82,11 @@ class TitleBarItem extends MenuItem_1.MenuItem {
|
|
|
66
82
|
}
|
|
67
83
|
async select() {
|
|
68
84
|
const openMenus = await this.getDriver().findElements(TitleBar.locators.ContextMenu.constructor);
|
|
69
|
-
if (openMenus.length > 0 && await openMenus[0].isDisplayed()) {
|
|
85
|
+
if (openMenus.length > 0 && (await openMenus[0].isDisplayed())) {
|
|
70
86
|
await this.getDriver().actions().sendKeys(selenium_webdriver_1.Key.ESCAPE).perform();
|
|
71
87
|
}
|
|
72
88
|
await this.click();
|
|
73
|
-
await new Promise(res => setTimeout(res, 500));
|
|
89
|
+
await new Promise((res) => setTimeout(res, 500));
|
|
74
90
|
return new __1.ContextMenu(this).wait();
|
|
75
91
|
}
|
|
76
92
|
}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { AbstractElement } from '../AbstractElement';
|
|
18
|
+
import { TitleBar } from '../..';
|
|
3
19
|
/**
|
|
4
20
|
* Page object for the windows controls part of the title bar
|
|
5
21
|
*/
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright ownership.
|
|
6
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
8
|
+
* the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
19
|
exports.WindowControls = void 0;
|
|
4
20
|
const AbstractElement_1 = require("../AbstractElement");
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { AbstractElement } from '../AbstractElement';
|
|
18
|
+
import { ViewTitlePart, ViewContent } from '../..';
|
|
3
19
|
/**
|
|
4
20
|
* Page object for the side bar view
|
|
5
21
|
*/
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright ownership.
|
|
6
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
8
|
+
* the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
19
|
exports.SideBarView = void 0;
|
|
4
20
|
const AbstractElement_1 = require("../AbstractElement");
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { SideBarView, ViewSection, ViewSectionConstructor } from '../..';
|
|
18
|
+
import { AbstractElement } from '../AbstractElement';
|
|
3
19
|
/**
|
|
4
20
|
* Page object representing the view container of a side bar view
|
|
5
21
|
*/
|
|
@@ -37,7 +53,7 @@ export declare class ViewContent extends AbstractElement {
|
|
|
37
53
|
* @param predicate Predicate to be used when searching
|
|
38
54
|
* @returns Promise resolving to ViewSection object
|
|
39
55
|
*/
|
|
40
|
-
getSection<T extends ViewSection>(predicate: (
|
|
56
|
+
getSection<T extends ViewSection>(predicate: (section: ViewSection) => boolean | PromiseLike<boolean>): Promise<T>;
|
|
41
57
|
/**
|
|
42
58
|
* Retrieves a collapsible view content section by predicate.
|
|
43
59
|
* Type parameter allows caller to use custom section implementation,
|
|
@@ -47,7 +63,7 @@ export declare class ViewContent extends AbstractElement {
|
|
|
47
63
|
* @param type ViewSection constructor to be used
|
|
48
64
|
* @returns Promise resolving to object specified by type
|
|
49
65
|
*/
|
|
50
|
-
getSection<T extends ViewSection>(predicate: (
|
|
66
|
+
getSection<T extends ViewSection>(predicate: (section: ViewSection) => boolean | PromiseLike<boolean>, type: ViewSectionConstructor<T>): Promise<T>;
|
|
51
67
|
/**
|
|
52
68
|
* Retrieves all the collapsible view content sections
|
|
53
69
|
* @returns Promise resolving to array of ViewSection objects
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright ownership.
|
|
6
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
8
|
+
* the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
19
|
exports.ViewContent = void 0;
|
|
4
20
|
const __1 = require("../..");
|
|
@@ -25,8 +41,7 @@ class ViewContent extends AbstractElement_1.AbstractElement {
|
|
|
25
41
|
}
|
|
26
42
|
async getSection(titleOrPredicate, type) {
|
|
27
43
|
const sections = await this.getSections();
|
|
28
|
-
const predicate = typeof titleOrPredicate === 'string' ?
|
|
29
|
-
(async (section) => await section.getTitle() === titleOrPredicate) : titleOrPredicate;
|
|
44
|
+
const predicate = typeof titleOrPredicate === 'string' ? async (section) => (await section.getTitle()) === titleOrPredicate : titleOrPredicate;
|
|
30
45
|
for (const section of sections) {
|
|
31
46
|
if (await predicate(section)) {
|
|
32
47
|
if (type !== undefined && !(section instanceof type)) {
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { ElementWithContexMenu } from '../ElementWithContextMenu';
|
|
18
|
+
import { AbstractElement } from '../AbstractElement';
|
|
19
|
+
import { WebElement, By } from 'selenium-webdriver';
|
|
4
20
|
/**
|
|
5
21
|
* Arbitrary item in the side bar view
|
|
6
22
|
*/
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright ownership.
|
|
6
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
8
|
+
* the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
19
|
exports.ViewItemAction = exports.TreeItem = exports.ViewItem = void 0;
|
|
4
20
|
const ElementWithContextMenu_1 = require("../ElementWithContextMenu");
|
|
@@ -50,7 +66,7 @@ class TreeItem extends ViewItem {
|
|
|
50
66
|
* Expands the current item, if it can be expanded and is collapsed.
|
|
51
67
|
*/
|
|
52
68
|
async expand() {
|
|
53
|
-
if (await this.isExpandable() && !await this.isExpanded()) {
|
|
69
|
+
if ((await this.isExpandable()) && !(await this.isExpanded())) {
|
|
54
70
|
await (await this.findTwistie()).click();
|
|
55
71
|
}
|
|
56
72
|
}
|
|
@@ -61,7 +77,7 @@ class TreeItem extends ViewItem {
|
|
|
61
77
|
async findChildItem(name) {
|
|
62
78
|
const children = await this.getChildren();
|
|
63
79
|
for (const item of children) {
|
|
64
|
-
if (await item.getLabel() === name) {
|
|
80
|
+
if ((await item.getLabel()) === name) {
|
|
65
81
|
return item;
|
|
66
82
|
}
|
|
67
83
|
}
|
|
@@ -70,7 +86,7 @@ class TreeItem extends ViewItem {
|
|
|
70
86
|
* Collapse the item if expanded
|
|
71
87
|
*/
|
|
72
88
|
async collapse() {
|
|
73
|
-
if (await this.isExpandable() && await this.isExpanded()) {
|
|
89
|
+
if ((await this.isExpandable()) && (await this.isExpanded())) {
|
|
74
90
|
await (await this.findTwistie()).click();
|
|
75
91
|
}
|
|
76
92
|
}
|
|
@@ -147,11 +163,11 @@ class TreeItem extends ViewItem {
|
|
|
147
163
|
const items = [];
|
|
148
164
|
await this.expand();
|
|
149
165
|
const rows = await this.enclosingItem.findElements(locator);
|
|
150
|
-
const baseIndex = +await this.getAttribute(TreeItem.locators.ViewSection.index);
|
|
151
|
-
const baseLevel = +await this.getAttribute(TreeItem.locators.ViewSection.level);
|
|
166
|
+
const baseIndex = +(await this.getAttribute(TreeItem.locators.ViewSection.index));
|
|
167
|
+
const baseLevel = +(await this.getAttribute(TreeItem.locators.ViewSection.level));
|
|
152
168
|
for (const row of rows) {
|
|
153
|
-
const level = +await row.getAttribute(TreeItem.locators.ViewSection.level);
|
|
154
|
-
const index = +await row.getAttribute(TreeItem.locators.ViewSection.index);
|
|
169
|
+
const level = +(await row.getAttribute(TreeItem.locators.ViewSection.level));
|
|
170
|
+
const index = +(await row.getAttribute(TreeItem.locators.ViewSection.index));
|
|
155
171
|
if (index <= baseIndex) {
|
|
156
172
|
continue;
|
|
157
173
|
}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { WebElement } from 'selenium-webdriver';
|
|
18
|
+
import { ContextMenu, ViewContent, ViewItem, WelcomeContentSection } from '../..';
|
|
19
|
+
import { AbstractElement } from '../AbstractElement';
|
|
4
20
|
export type ViewSectionConstructor<T extends ViewSection> = {
|
|
5
21
|
new (rootElement: WebElement, tree: ViewContent): T;
|
|
6
22
|
};
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright ownership.
|
|
6
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
8
|
+
* the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
19
|
exports.ViewPanelAction = exports.ViewSection = void 0;
|
|
4
20
|
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
@@ -28,7 +44,7 @@ class ViewSection extends AbstractElement_1.AbstractElement {
|
|
|
28
44
|
if (await this.isHeaderHidden()) {
|
|
29
45
|
return;
|
|
30
46
|
}
|
|
31
|
-
if (!await this.isExpanded()) {
|
|
47
|
+
if (!(await this.isExpanded())) {
|
|
32
48
|
const panel = await this.findElement(ViewSection.locators.ViewSection.header);
|
|
33
49
|
await panel.click();
|
|
34
50
|
await this.getDriver().wait((0, __1.waitForAttributeValue)(panel, ViewSection.locators.ViewSection.headerExpanded, 'true'), 1000);
|
|
@@ -65,7 +81,7 @@ class ViewSection extends AbstractElement_1.AbstractElement {
|
|
|
65
81
|
async findWelcomeContent() {
|
|
66
82
|
try {
|
|
67
83
|
const res = await this.findElement(ViewSection.locators.ViewSection.welcomeContent);
|
|
68
|
-
if (!await res.isDisplayed()) {
|
|
84
|
+
if (!(await res.isDisplayed())) {
|
|
69
85
|
return undefined;
|
|
70
86
|
}
|
|
71
87
|
return new __1.WelcomeContentSection(res, this);
|
|
@@ -80,7 +96,7 @@ class ViewSection extends AbstractElement_1.AbstractElement {
|
|
|
80
96
|
*/
|
|
81
97
|
async getActions() {
|
|
82
98
|
const actions = [];
|
|
83
|
-
if (!await this.isHeaderHidden()) {
|
|
99
|
+
if (!(await this.isHeaderHidden())) {
|
|
84
100
|
const header = await this.findElement(ViewSection.locators.ViewSection.header);
|
|
85
101
|
const act = await header.findElement(ViewSection.locators.ViewSection.actions);
|
|
86
102
|
const elements = await act.findElements(ViewSection.locators.ViewSection.button);
|
|
@@ -98,7 +114,7 @@ class ViewSection extends AbstractElement_1.AbstractElement {
|
|
|
98
114
|
async getAction(label) {
|
|
99
115
|
const actions = await this.getActions();
|
|
100
116
|
for (const action of actions) {
|
|
101
|
-
if (await action.getLabel() === label) {
|
|
117
|
+
if ((await action.getLabel()) === label) {
|
|
102
118
|
return action;
|
|
103
119
|
}
|
|
104
120
|
}
|
|
@@ -114,7 +130,7 @@ class ViewSection extends AbstractElement_1.AbstractElement {
|
|
|
114
130
|
return undefined;
|
|
115
131
|
}
|
|
116
132
|
const section = this;
|
|
117
|
-
const btn = new class extends ElementWithContextMenu_1.ElementWithContexMenu {
|
|
133
|
+
const btn = new (class extends ElementWithContextMenu_1.ElementWithContexMenu {
|
|
118
134
|
async openContextMenu() {
|
|
119
135
|
await this.click();
|
|
120
136
|
const shadowRootHost = await section.findElements(selenium_webdriver_1.By.className('shadow-root-host'));
|
|
@@ -127,13 +143,13 @@ class ViewSection extends AbstractElement_1.AbstractElement {
|
|
|
127
143
|
return new __1.ContextMenu(await shadowRoot.findElement(selenium_webdriver_1.By.className('monaco-menu-container'))).wait();
|
|
128
144
|
}
|
|
129
145
|
else {
|
|
130
|
-
shadowRoot = await this.getDriver().executeScript('return arguments[0].shadowRoot', shadowRootHost[0]);
|
|
146
|
+
shadowRoot = (await this.getDriver().executeScript('return arguments[0].shadowRoot', shadowRootHost[0]));
|
|
131
147
|
return new __1.ContextMenu(shadowRoot).wait();
|
|
132
148
|
}
|
|
133
149
|
}
|
|
134
150
|
return await super.openContextMenu();
|
|
135
151
|
}
|
|
136
|
-
}(more, this);
|
|
152
|
+
})(more, this);
|
|
137
153
|
return await btn.openContextMenu();
|
|
138
154
|
}
|
|
139
155
|
async isHeaderHidden() {
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { ElementWithContexMenu } from '../ElementWithContextMenu';
|
|
18
|
+
import { AbstractElement } from '../AbstractElement';
|
|
19
|
+
import { By, SideBarView } from '../..';
|
|
4
20
|
/**
|
|
5
21
|
* Page object representing the top (title) part of a side bar view
|
|
6
22
|
*/
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright ownership.
|
|
6
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
8
|
+
* the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
19
|
exports.TitleActionButton = exports.ViewTitlePart = void 0;
|
|
4
20
|
const ElementWithContextMenu_1 = require("../ElementWithContextMenu");
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { WebElement } from 'selenium-webdriver';
|
|
18
|
+
import { AbstractElement } from '../AbstractElement';
|
|
19
|
+
import { ViewSection } from '../..';
|
|
4
20
|
/**
|
|
5
21
|
* A button that appears in the welcome content and can be clicked to execute a command.
|
|
6
22
|
*
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright ownership.
|
|
6
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
8
|
+
* the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
19
|
exports.WelcomeContentSection = exports.WelcomeContentButton = void 0;
|
|
4
20
|
const AbstractElement_1 = require("../AbstractElement");
|
|
@@ -48,7 +64,7 @@ class WelcomeContentSection extends AbstractElement_1.AbstractElement {
|
|
|
48
64
|
const elements = await this.findElements(WelcomeContentSection.locators.WelcomeContent.buttonOrText);
|
|
49
65
|
return Promise.all(elements.map(async (e) => {
|
|
50
66
|
const tagName = await e.getTagName();
|
|
51
|
-
if (tagName ===
|
|
67
|
+
if (tagName === 'p') {
|
|
52
68
|
return await e.getText();
|
|
53
69
|
}
|
|
54
70
|
else {
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { SideBarView } from '../SideBarView';
|
|
18
|
+
import { DebugBreakpointSection } from '../tree/debug/DebugBreakpointSection';
|
|
19
|
+
import { DebugVariableSection } from '../tree/debug/DebugVariablesSection';
|
|
4
20
|
/**
|
|
5
21
|
* Page object representing the Run/Debug view in the side bar
|
|
6
22
|
*/
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright ownership.
|
|
6
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
8
|
+
* the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
19
|
exports.DebugView = void 0;
|
|
4
20
|
const SideBarView_1 = require("../SideBarView");
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { ViewItem } from '../ViewItem';
|
|
18
|
+
import { WebElement } from 'selenium-webdriver';
|
|
19
|
+
import { ContextMenu } from '../../menu/ContextMenu';
|
|
20
|
+
import { ExtensionsViewSection } from './ExtensionsViewSection';
|
|
5
21
|
/**
|
|
6
22
|
* Page object representing an extension in the extensions view
|
|
7
23
|
*/
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright ownership.
|
|
6
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
8
|
+
* the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
19
|
exports.ExtensionsViewItem = void 0;
|
|
4
20
|
const ViewItem_1 = require("../ViewItem");
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
* (the "License", destination); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { ViewSection } from '../ViewSection';
|
|
18
|
+
import { ExtensionsViewItem } from './ExtensionsViewItem';
|
|
3
19
|
/**
|
|
4
20
|
* View section containing extensions
|
|
5
21
|
*/
|