@redhat-developer/page-objects 1.0.2 → 1.1.1
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 +16 -0
- package/out/components/AbstractElement.js +18 -2
- package/out/components/ElementWithContextMenu.d.ts +16 -0
- package/out/components/ElementWithContextMenu.js +16 -0
- package/out/components/WebviewMixin.d.ts +17 -1
- package/out/components/WebviewMixin.js +16 -0
- package/out/components/activityBar/ActionsControl.d.ts +16 -0
- package/out/components/activityBar/ActionsControl.js +16 -0
- package/out/components/activityBar/ActivityBar.d.ts +16 -0
- package/out/components/activityBar/ActivityBar.js +16 -0
- package/out/components/activityBar/ViewControl.d.ts +16 -0
- package/out/components/activityBar/ViewControl.js +16 -0
- package/out/components/bottomBar/AbstractViews.d.ts +17 -0
- package/out/components/bottomBar/AbstractViews.js +19 -2
- package/out/components/bottomBar/BottomBarPanel.d.ts +16 -0
- package/out/components/bottomBar/BottomBarPanel.js +17 -1
- package/out/components/bottomBar/ProblemsView.d.ts +16 -0
- package/out/components/bottomBar/ProblemsView.js +17 -2
- package/out/components/bottomBar/Views.d.ts +16 -0
- package/out/components/bottomBar/Views.js +16 -0
- package/out/components/bottomBar/WebviewView.d.ts +16 -0
- package/out/components/bottomBar/WebviewView.js +17 -0
- package/out/components/dialog/ModalDialog.d.ts +16 -0
- package/out/components/dialog/ModalDialog.js +16 -0
- package/out/components/editor/Breakpoint.d.ts +16 -0
- package/out/components/editor/Breakpoint.js +16 -0
- package/out/components/editor/ContentAssist.d.ts +16 -0
- package/out/components/editor/ContentAssist.js +16 -0
- package/out/components/editor/CustomEditor.d.ts +16 -0
- 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 +16 -0
- package/out/components/editor/Editor.js +16 -0
- package/out/components/editor/EditorAction.d.ts +16 -0
- package/out/components/editor/EditorAction.js +16 -0
- package/out/components/editor/EditorView.d.ts +16 -0
- package/out/components/editor/EditorView.js +17 -1
- package/out/components/editor/SettingsEditor.d.ts +101 -4
- package/out/components/editor/SettingsEditor.js +226 -35
- package/out/components/editor/TextEditor.d.ts +16 -0
- package/out/components/editor/TextEditor.js +21 -5
- package/out/components/editor/WebView.d.ts +16 -0
- package/out/components/editor/WebView.js +18 -1
- package/out/components/menu/ContextMenu.d.ts +16 -0
- package/out/components/menu/ContextMenu.js +17 -1
- package/out/components/menu/MacTitleBar.d.ts +16 -0
- package/out/components/menu/MacTitleBar.js +16 -0
- package/out/components/menu/Menu.d.ts +16 -0
- package/out/components/menu/Menu.js +18 -1
- package/out/components/menu/MenuItem.d.ts +16 -0
- package/out/components/menu/MenuItem.js +16 -0
- package/out/components/menu/TitleBar.d.ts +18 -2
- package/out/components/menu/TitleBar.js +18 -2
- package/out/components/menu/WindowControls.d.ts +16 -0
- package/out/components/menu/WindowControls.js +16 -0
- package/out/components/sidebar/SideBarView.d.ts +16 -0
- package/out/components/sidebar/SideBarView.js +16 -0
- package/out/components/sidebar/ViewContent.d.ts +16 -0
- package/out/components/sidebar/ViewContent.js +17 -1
- package/out/components/sidebar/ViewItem.d.ts +16 -0
- package/out/components/sidebar/ViewItem.js +16 -0
- package/out/components/sidebar/ViewSection.d.ts +16 -0
- package/out/components/sidebar/ViewSection.js +17 -1
- package/out/components/sidebar/ViewTitlePart.d.ts +16 -0
- package/out/components/sidebar/ViewTitlePart.js +16 -0
- package/out/components/sidebar/WelcomeContent.d.ts +16 -0
- package/out/components/sidebar/WelcomeContent.js +16 -0
- package/out/components/sidebar/debug/DebugView.d.ts +17 -0
- package/out/components/sidebar/debug/DebugView.js +18 -1
- package/out/components/sidebar/extensions/ExtensionsViewItem.d.ts +16 -0
- package/out/components/sidebar/extensions/ExtensionsViewItem.js +16 -0
- package/out/components/sidebar/extensions/ExtensionsViewSection.d.ts +16 -0
- package/out/components/sidebar/extensions/ExtensionsViewSection.js +17 -1
- package/out/components/sidebar/scm/NewScmView.d.ts +16 -0
- package/out/components/sidebar/scm/NewScmView.js +16 -0
- package/out/components/sidebar/scm/ScmView.d.ts +17 -1
- package/out/components/sidebar/scm/ScmView.js +18 -2
- package/out/components/sidebar/tree/TreeSection.d.ts +16 -0
- package/out/components/sidebar/tree/TreeSection.js +16 -0
- package/out/components/sidebar/tree/custom/CustomTreeItem.d.ts +16 -0
- package/out/components/sidebar/tree/custom/CustomTreeItem.js +16 -0
- package/out/components/sidebar/tree/custom/CustomTreeSection.d.ts +16 -0
- package/out/components/sidebar/tree/custom/CustomTreeSection.js +16 -0
- package/out/components/sidebar/tree/debug/BreakpointSectionItem.d.ts +16 -0
- package/out/components/sidebar/tree/debug/BreakpointSectionItem.js +16 -0
- package/out/components/sidebar/tree/debug/DebugBreakpointSection.d.ts +16 -0
- package/out/components/sidebar/tree/debug/DebugBreakpointSection.js +16 -0
- package/out/components/sidebar/tree/debug/DebugVariablesSection.d.ts +16 -0
- package/out/components/sidebar/tree/debug/DebugVariablesSection.js +16 -0
- package/out/components/sidebar/tree/debug/SectionBreakpoint.d.ts +16 -0
- package/out/components/sidebar/tree/debug/SectionBreakpoint.js +16 -0
- package/out/components/sidebar/tree/debug/VariableSectionItem.d.ts +18 -0
- package/out/components/sidebar/tree/debug/VariableSectionItem.js +24 -0
- package/out/components/sidebar/tree/default/DefaultTreeItem.d.ts +16 -0
- package/out/components/sidebar/tree/default/DefaultTreeItem.js +16 -0
- package/out/components/sidebar/tree/default/DefaultTreeSection.d.ts +16 -0
- package/out/components/sidebar/tree/default/DefaultTreeSection.js +16 -0
- package/out/components/statusBar/StatusBar.d.ts +16 -0
- package/out/components/statusBar/StatusBar.js +16 -0
- package/out/components/workbench/DebugToolbar.d.ts +16 -0
- package/out/components/workbench/DebugToolbar.js +16 -0
- package/out/components/workbench/Notification.d.ts +17 -0
- package/out/components/workbench/Notification.js +20 -0
- package/out/components/workbench/NotificationsCenter.d.ts +16 -0
- package/out/components/workbench/NotificationsCenter.js +17 -1
- package/out/components/workbench/Workbench.d.ts +16 -0
- package/out/components/workbench/Workbench.js +16 -0
- package/out/components/workbench/input/Input.d.ts +16 -0
- package/out/components/workbench/input/Input.js +16 -0
- package/out/components/workbench/input/InputBox.d.ts +16 -0
- package/out/components/workbench/input/InputBox.js +16 -0
- package/out/components/workbench/input/QuickOpenBox.d.ts +16 -0
- package/out/components/workbench/input/QuickOpenBox.js +16 -0
- package/out/conditions/WaitForAttribute.d.ts +17 -1
- package/out/conditions/WaitForAttribute.js +17 -1
- 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 +19 -3
- package/out/locators/locators.d.ts +28 -2
- package/out/locators/locators.js +16 -0
- package/package.json +5 -3
|
@@ -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.ContentAssistItem = exports.ContentAssist = void 0;
|
|
4
20
|
const __1 = require("../..");
|
|
@@ -1,3 +1,19 @@
|
|
|
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
|
+
*/
|
|
1
17
|
import { Editor, InputBox, WebView } from "../..";
|
|
2
18
|
/**
|
|
3
19
|
* Page object for custom editors
|
|
@@ -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.CustomEditor = void 0;
|
|
4
20
|
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
@@ -1,3 +1,19 @@
|
|
|
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
|
+
*/
|
|
1
17
|
import { Editor } from './Editor';
|
|
2
18
|
import { TextEditor } from './TextEditor';
|
|
3
19
|
/**
|
|
@@ -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.DiffEditor = void 0;
|
|
4
20
|
const Editor_1 = require("./Editor");
|
|
@@ -1,3 +1,19 @@
|
|
|
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
|
+
*/
|
|
1
17
|
import { ElementWithContexMenu } from "../ElementWithContextMenu";
|
|
2
18
|
import { EditorTab, EditorView, EditorGroup } from "../..";
|
|
3
19
|
import { WebElement, Locator } from 'selenium-webdriver';
|
|
@@ -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.Editor = void 0;
|
|
4
20
|
const ElementWithContextMenu_1 = require("../ElementWithContextMenu");
|
|
@@ -1,3 +1,19 @@
|
|
|
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
|
+
*/
|
|
1
17
|
import { EditorGroup } from "./EditorView";
|
|
2
18
|
import { AbstractElement } from "../AbstractElement";
|
|
3
19
|
import { WebElement } from "../..";
|
|
@@ -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.EditorAction = void 0;
|
|
4
20
|
const AbstractElement_1 = require("../AbstractElement");
|
|
@@ -1,3 +1,19 @@
|
|
|
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
|
+
*/
|
|
1
17
|
import { WebElement } from "selenium-webdriver";
|
|
2
18
|
import { AbstractElement } from "../AbstractElement";
|
|
3
19
|
import { ElementWithContexMenu } from "../ElementWithContextMenu";
|
|
@@ -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.EditorTab = exports.EditorGroup = exports.EditorView = exports.EditorTabNotFound = void 0;
|
|
4
20
|
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
@@ -124,7 +140,7 @@ class EditorView extends AbstractElement_1.AbstractElement {
|
|
|
124
140
|
for (let i = 0; i < groups.length - 1; i++) {
|
|
125
141
|
for (let j = 0; j < groups.length - i - 1; j++) {
|
|
126
142
|
if ((await groups[j].getRect()).x > (await groups[j + 1].getRect()).x) {
|
|
127
|
-
|
|
143
|
+
const temp = groups[j];
|
|
128
144
|
groups[j] = groups[j + 1];
|
|
129
145
|
groups[j + 1] = temp;
|
|
130
146
|
}
|
|
@@ -1,10 +1,26 @@
|
|
|
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
|
+
*/
|
|
1
17
|
import { Editor } from "./Editor";
|
|
2
18
|
import { ContextMenu } from "../menu/ContextMenu";
|
|
3
|
-
import { By } from "selenium-webdriver";
|
|
19
|
+
import { WebElement, By } from "selenium-webdriver";
|
|
4
20
|
import { AbstractElement } from "../AbstractElement";
|
|
5
21
|
import { EditorView, EditorGroup } from "../..";
|
|
6
22
|
/**
|
|
7
|
-
* Page object representing the internal
|
|
23
|
+
* Page object representing the internal VS Code settings editor
|
|
8
24
|
*/
|
|
9
25
|
export declare class SettingsEditor extends Editor {
|
|
10
26
|
private divider;
|
|
@@ -48,7 +64,7 @@ export declare class SettingsEditor extends Editor {
|
|
|
48
64
|
}
|
|
49
65
|
/**
|
|
50
66
|
* Abstract item representing a Setting with title, description and
|
|
51
|
-
* an input element (combo/textbox/checkbox/link)
|
|
67
|
+
* an input element (combo/textbox/checkbox/link/array)
|
|
52
68
|
*/
|
|
53
69
|
export declare abstract class Setting extends AbstractElement {
|
|
54
70
|
constructor(settingsConstructor: By, settings: SettingsEditor);
|
|
@@ -91,7 +107,6 @@ export declare class ComboSetting extends Setting {
|
|
|
91
107
|
*/
|
|
92
108
|
getValues(): Promise<string[]>;
|
|
93
109
|
private getOptions;
|
|
94
|
-
private openCombo;
|
|
95
110
|
}
|
|
96
111
|
/**
|
|
97
112
|
* Setting with a text box input
|
|
@@ -119,3 +134,85 @@ export declare class LinkSetting extends Setting {
|
|
|
119
134
|
*/
|
|
120
135
|
openLink(): Promise<void>;
|
|
121
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* Setting with an array of string values (rows)
|
|
139
|
+
*/
|
|
140
|
+
export declare class ArraySetting extends Setting {
|
|
141
|
+
/**
|
|
142
|
+
* @deprecated Method 'getValue' is not available for ArraySetting!
|
|
143
|
+
*/
|
|
144
|
+
getValue(): Promise<string | boolean>;
|
|
145
|
+
/**
|
|
146
|
+
* @deprecated Method 'setValue' is not available for ArraySetting!
|
|
147
|
+
*/
|
|
148
|
+
setValue(value: string | boolean): Promise<void>;
|
|
149
|
+
/**
|
|
150
|
+
* Select a row of a setting array of string values
|
|
151
|
+
* @param item label | index
|
|
152
|
+
*/
|
|
153
|
+
select(item: string | number): Promise<void>;
|
|
154
|
+
/**
|
|
155
|
+
* Get a row as new ArraySettingItem object
|
|
156
|
+
* @param item label or index
|
|
157
|
+
* @returns ArraySettingItem | undefined
|
|
158
|
+
*/
|
|
159
|
+
getItem(item: string | number): Promise<ArraySettingItem | undefined>;
|
|
160
|
+
/**
|
|
161
|
+
* Get a list of all rows as ArraySettingItem objects
|
|
162
|
+
* @returns ArraySettingItem[]
|
|
163
|
+
*/
|
|
164
|
+
getItems(): Promise<ArraySettingItem[]>;
|
|
165
|
+
/**
|
|
166
|
+
* Get a list of all rows values
|
|
167
|
+
* @returns string[]
|
|
168
|
+
*/
|
|
169
|
+
getValues(): Promise<string[]>;
|
|
170
|
+
/**
|
|
171
|
+
* Click 'Add Item' and get row as ArraySettingItem in edit mode
|
|
172
|
+
* @returns ArraySettingItem
|
|
173
|
+
*/
|
|
174
|
+
add(): Promise<ArraySettingItem>;
|
|
175
|
+
/**
|
|
176
|
+
* Select a row, then click 'Edit Item' and get row as ArraySettingItem in edit mode
|
|
177
|
+
* @param item label | index
|
|
178
|
+
* @returns ArraySettingItem | undefined
|
|
179
|
+
*/
|
|
180
|
+
edit(item: string | number): Promise<ArraySettingItem | undefined>;
|
|
181
|
+
private getListRootElement;
|
|
182
|
+
private getRows;
|
|
183
|
+
private findRow;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Represents each row of an ArraySetting array of strings
|
|
187
|
+
*/
|
|
188
|
+
export declare class ArraySettingItem extends AbstractElement {
|
|
189
|
+
constructor(element: WebElement, setting: ArraySetting);
|
|
190
|
+
/**
|
|
191
|
+
* Select an item
|
|
192
|
+
*/
|
|
193
|
+
select(): Promise<void>;
|
|
194
|
+
/**
|
|
195
|
+
* Get item text value
|
|
196
|
+
* @returns string
|
|
197
|
+
*/
|
|
198
|
+
getValue(): Promise<string>;
|
|
199
|
+
/**
|
|
200
|
+
* Set item text value
|
|
201
|
+
* @param value string
|
|
202
|
+
*/
|
|
203
|
+
setValue(value: string): Promise<void>;
|
|
204
|
+
/**
|
|
205
|
+
* Click 'Remove Item' button
|
|
206
|
+
*/
|
|
207
|
+
remove(): Promise<void>;
|
|
208
|
+
/**
|
|
209
|
+
* Click 'OK' button
|
|
210
|
+
* @description Only when the item is in edit mode
|
|
211
|
+
*/
|
|
212
|
+
ok(): Promise<void>;
|
|
213
|
+
/**
|
|
214
|
+
* Click 'Cancel' button
|
|
215
|
+
* @description Only when the item is in edit mode
|
|
216
|
+
*/
|
|
217
|
+
cancel(): Promise<void>;
|
|
218
|
+
}
|