@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.
Files changed (125) hide show
  1. package/out/components/AbstractElement.d.ts +18 -2
  2. package/out/components/AbstractElement.js +18 -2
  3. package/out/components/ElementWithContextMenu.d.ts +18 -2
  4. package/out/components/ElementWithContextMenu.js +16 -0
  5. package/out/components/WebviewMixin.d.ts +18 -2
  6. package/out/components/WebviewMixin.js +16 -0
  7. package/out/components/activityBar/ActionsControl.d.ts +19 -3
  8. package/out/components/activityBar/ActionsControl.js +16 -0
  9. package/out/components/activityBar/ActivityBar.d.ts +18 -2
  10. package/out/components/activityBar/ActivityBar.js +16 -0
  11. package/out/components/activityBar/ViewControl.d.ts +19 -3
  12. package/out/components/activityBar/ViewControl.js +16 -0
  13. package/out/components/bottomBar/AbstractViews.d.ts +20 -4
  14. package/out/components/bottomBar/AbstractViews.js +24 -7
  15. package/out/components/bottomBar/BottomBarPanel.d.ts +18 -2
  16. package/out/components/bottomBar/BottomBarPanel.js +18 -3
  17. package/out/components/bottomBar/ProblemsView.d.ts +19 -3
  18. package/out/components/bottomBar/ProblemsView.js +23 -5
  19. package/out/components/bottomBar/Views.d.ts +19 -3
  20. package/out/components/bottomBar/Views.js +17 -1
  21. package/out/components/bottomBar/WebviewView.d.ts +18 -2
  22. package/out/components/bottomBar/WebviewView.js +16 -0
  23. package/out/components/dialog/ModalDialog.d.ts +18 -2
  24. package/out/components/dialog/ModalDialog.js +17 -1
  25. package/out/components/editor/Breakpoint.d.ts +16 -0
  26. package/out/components/editor/Breakpoint.js +16 -0
  27. package/out/components/editor/ContentAssist.d.ts +17 -1
  28. package/out/components/editor/ContentAssist.js +22 -5
  29. package/out/components/editor/CustomEditor.d.ts +17 -1
  30. package/out/components/editor/CustomEditor.js +16 -0
  31. package/out/components/editor/DiffEditor.d.ts +16 -0
  32. package/out/components/editor/DiffEditor.js +16 -0
  33. package/out/components/editor/Editor.d.ts +18 -2
  34. package/out/components/editor/Editor.js +17 -1
  35. package/out/components/editor/EditorAction.d.ts +19 -3
  36. package/out/components/editor/EditorAction.js +16 -0
  37. package/out/components/editor/EditorView.d.ts +21 -5
  38. package/out/components/editor/EditorView.js +28 -7
  39. package/out/components/editor/SettingsEditor.d.ts +27 -11
  40. package/out/components/editor/SettingsEditor.js +36 -19
  41. package/out/components/editor/TextEditor.d.ts +22 -6
  42. package/out/components/editor/TextEditor.js +31 -13
  43. package/out/components/editor/WebView.d.ts +18 -2
  44. package/out/components/editor/WebView.js +18 -2
  45. package/out/components/menu/ContextMenu.d.ts +18 -2
  46. package/out/components/menu/ContextMenu.js +18 -2
  47. package/out/components/menu/MacTitleBar.d.ts +16 -0
  48. package/out/components/menu/MacTitleBar.js +17 -5
  49. package/out/components/menu/Menu.d.ts +18 -2
  50. package/out/components/menu/Menu.js +18 -2
  51. package/out/components/menu/MenuItem.d.ts +18 -2
  52. package/out/components/menu/MenuItem.js +17 -1
  53. package/out/components/menu/TitleBar.d.ts +19 -3
  54. package/out/components/menu/TitleBar.js +18 -2
  55. package/out/components/menu/WindowControls.d.ts +18 -2
  56. package/out/components/menu/WindowControls.js +16 -0
  57. package/out/components/sidebar/SideBarView.d.ts +18 -2
  58. package/out/components/sidebar/SideBarView.js +16 -0
  59. package/out/components/sidebar/ViewContent.d.ts +20 -4
  60. package/out/components/sidebar/ViewContent.js +17 -2
  61. package/out/components/sidebar/ViewItem.d.ts +19 -3
  62. package/out/components/sidebar/ViewItem.js +23 -7
  63. package/out/components/sidebar/ViewSection.d.ts +19 -3
  64. package/out/components/sidebar/ViewSection.js +23 -7
  65. package/out/components/sidebar/ViewTitlePart.d.ts +19 -3
  66. package/out/components/sidebar/ViewTitlePart.js +16 -0
  67. package/out/components/sidebar/WelcomeContent.d.ts +19 -3
  68. package/out/components/sidebar/WelcomeContent.js +17 -1
  69. package/out/components/sidebar/debug/DebugView.d.ts +19 -3
  70. package/out/components/sidebar/debug/DebugView.js +16 -0
  71. package/out/components/sidebar/extensions/ExtensionsViewItem.d.ts +20 -4
  72. package/out/components/sidebar/extensions/ExtensionsViewItem.js +16 -0
  73. package/out/components/sidebar/extensions/ExtensionsViewSection.d.ts +18 -2
  74. package/out/components/sidebar/extensions/ExtensionsViewSection.js +19 -3
  75. package/out/components/sidebar/scm/NewScmView.d.ts +18 -2
  76. package/out/components/sidebar/scm/NewScmView.js +30 -14
  77. package/out/components/sidebar/scm/ScmView.d.ts +21 -5
  78. package/out/components/sidebar/scm/ScmView.js +24 -8
  79. package/out/components/sidebar/tree/TreeSection.d.ts +19 -3
  80. package/out/components/sidebar/tree/TreeSection.js +20 -4
  81. package/out/components/sidebar/tree/custom/CustomTreeItem.d.ts +19 -3
  82. package/out/components/sidebar/tree/custom/CustomTreeItem.js +16 -0
  83. package/out/components/sidebar/tree/custom/CustomTreeSection.d.ts +21 -5
  84. package/out/components/sidebar/tree/custom/CustomTreeSection.js +18 -2
  85. package/out/components/sidebar/tree/debug/BreakpointSectionItem.d.ts +20 -4
  86. package/out/components/sidebar/tree/debug/BreakpointSectionItem.js +17 -1
  87. package/out/components/sidebar/tree/debug/DebugBreakpointSection.d.ts +20 -4
  88. package/out/components/sidebar/tree/debug/DebugBreakpointSection.js +16 -0
  89. package/out/components/sidebar/tree/debug/DebugVariablesSection.d.ts +20 -4
  90. package/out/components/sidebar/tree/debug/DebugVariablesSection.js +16 -0
  91. package/out/components/sidebar/tree/debug/SectionBreakpoint.d.ts +17 -1
  92. package/out/components/sidebar/tree/debug/SectionBreakpoint.js +16 -0
  93. package/out/components/sidebar/tree/debug/VariableSectionItem.d.ts +20 -3
  94. package/out/components/sidebar/tree/debug/VariableSectionItem.js +20 -0
  95. package/out/components/sidebar/tree/default/DefaultTreeItem.d.ts +19 -3
  96. package/out/components/sidebar/tree/default/DefaultTreeItem.js +16 -0
  97. package/out/components/sidebar/tree/default/DefaultTreeSection.d.ts +18 -2
  98. package/out/components/sidebar/tree/default/DefaultTreeSection.js +17 -1
  99. package/out/components/statusBar/StatusBar.d.ts +19 -3
  100. package/out/components/statusBar/StatusBar.js +17 -1
  101. package/out/components/workbench/DebugToolbar.d.ts +17 -1
  102. package/out/components/workbench/DebugToolbar.js +16 -0
  103. package/out/components/workbench/Notification.d.ts +19 -3
  104. package/out/components/workbench/Notification.js +17 -2
  105. package/out/components/workbench/NotificationsCenter.d.ts +18 -2
  106. package/out/components/workbench/NotificationsCenter.js +17 -1
  107. package/out/components/workbench/Workbench.d.ts +28 -12
  108. package/out/components/workbench/Workbench.js +17 -1
  109. package/out/components/workbench/input/Input.d.ts +17 -1
  110. package/out/components/workbench/input/Input.js +29 -20
  111. package/out/components/workbench/input/InputBox.d.ts +17 -1
  112. package/out/components/workbench/input/InputBox.js +20 -5
  113. package/out/components/workbench/input/QuickOpenBox.d.ts +17 -1
  114. package/out/components/workbench/input/QuickOpenBox.js +18 -3
  115. package/out/conditions/WaitForAttribute.d.ts +17 -1
  116. package/out/conditions/WaitForAttribute.js +16 -0
  117. package/out/errors/NullAttributeError.d.ts +16 -0
  118. package/out/errors/NullAttributeError.js +16 -0
  119. package/out/index.d.ts +16 -0
  120. package/out/index.js +16 -0
  121. package/out/locators/loader.d.ts +16 -0
  122. package/out/locators/loader.js +24 -8
  123. package/out/locators/locators.d.ts +24 -8
  124. package/out/locators/locators.js +17 -1
  125. package/package.json +2 -2
@@ -1,5 +1,21 @@
1
- import { WebElement, WebDriver, Locator } from "selenium-webdriver";
2
- import { Locators } from "../locators/locators";
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, WebDriver, Locator } from 'selenium-webdriver';
18
+ import { Locators } from '../locators/locators';
3
19
  /**
4
20
  * Default wrapper for webelement
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.AbstractElement = void 0;
4
20
  const selenium_webdriver_1 = require("selenium-webdriver");
@@ -39,10 +55,10 @@ class AbstractElement extends selenium_webdriver_1.WebElement {
39
55
  this.enclosingItem = item;
40
56
  }
41
57
  async isEnabled() {
42
- return await super.isEnabled() && await AbstractElement.locators.AbstractElement.enabled(this);
58
+ return (await super.isEnabled()) && (await AbstractElement.locators.AbstractElement.enabled(this));
43
59
  }
44
60
  async isSelected() {
45
- return await super.isSelected() && await AbstractElement.locators.AbstractElement.selected(this);
61
+ return (await super.isSelected()) && (await AbstractElement.locators.AbstractElement.selected(this));
46
62
  }
47
63
  /**
48
64
  * Wait for the element to become visible
@@ -1,5 +1,21 @@
1
- import { AbstractElement } from "./AbstractElement";
2
- import { ContextMenu } from "..";
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 { ContextMenu } from '..';
3
19
  /**
4
20
  * Abstract element that has a context menu
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.ElementWithContexMenu = void 0;
4
20
  const AbstractElement_1 = require("./AbstractElement");
@@ -1,5 +1,21 @@
1
- import { Locator, WebElement } from "selenium-webdriver";
2
- import { AbstractElement } from "./AbstractElement";
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 { Locator, WebElement } from 'selenium-webdriver';
18
+ import { AbstractElement } from './AbstractElement';
3
19
  /**
4
20
  * Heavily inspired by https://stackoverflow.com/a/65418734
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
  const selenium_webdriver_1 = require("selenium-webdriver");
4
20
  const AbstractElement_1 = require("./AbstractElement");
@@ -1,6 +1,22 @@
1
- import { WebElement } from "selenium-webdriver";
2
- import { ActivityBar, ContextMenu } from "../..";
3
- import { ElementWithContexMenu } from "../ElementWithContextMenu";
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 { ActivityBar, ContextMenu } from '../..';
19
+ import { ElementWithContexMenu } from '../ElementWithContextMenu';
4
20
  /**
5
21
  * Page object representing the global action controls on the bottom of the action 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.ActionsControl = void 0;
4
20
  const ElementWithContextMenu_1 = require("../ElementWithContextMenu");
@@ -1,5 +1,21 @@
1
- import { ActionsControl, ViewControl } from "../..";
2
- import { ElementWithContexMenu } from "../ElementWithContextMenu";
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 { ActionsControl, ViewControl } from '../..';
18
+ import { ElementWithContexMenu } from '../ElementWithContextMenu';
3
19
  /**
4
20
  * Page object representing the left side activity bar in VS Code
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.ActivityBar = void 0;
4
20
  const __1 = require("../..");
@@ -1,6 +1,22 @@
1
- import { ActivityBar, SideBarView } from "../..";
2
- import { ElementWithContexMenu } from "../ElementWithContextMenu";
3
- import { WebElement } from "selenium-webdriver";
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 { ActivityBar, SideBarView } from '../..';
18
+ import { ElementWithContexMenu } from '../ElementWithContextMenu';
19
+ import { WebElement } from 'selenium-webdriver';
4
20
  /**
5
21
  * Page object representing a view container item in the activity 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.ViewControl = void 0;
4
20
  const __1 = require("../..");
@@ -1,13 +1,29 @@
1
- import { ElementWithContexMenu } from "../ElementWithContextMenu";
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';
2
18
  /**
3
19
  * View with channel selector
4
20
  */
5
21
  export declare abstract class ChannelView extends ElementWithContexMenu {
6
22
  protected actionsLabel: string;
7
23
  /**
8
- * Get names of all selectable channels
9
- * @returns Promise resolving to array of strings - channel names
10
- */
24
+ * Get names of all selectable channels
25
+ * @returns Promise resolving to array of strings - channel names
26
+ */
11
27
  getChannelNames(): Promise<string[]>;
12
28
  /**
13
29
  * Get name of the current channel
@@ -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.TextView = exports.ChannelView = void 0;
4
20
  const selenium_webdriver_1 = require("selenium-webdriver");
@@ -9,13 +25,12 @@ const ElementWithContextMenu_1 = require("../ElementWithContextMenu");
9
25
  class ChannelView extends ElementWithContextMenu_1.ElementWithContexMenu {
10
26
  actionsLabel;
11
27
  /**
12
- * Get names of all selectable channels
13
- * @returns Promise resolving to array of strings - channel names
14
- */
28
+ * Get names of all selectable channels
29
+ * @returns Promise resolving to array of strings - channel names
30
+ */
15
31
  async getChannelNames() {
16
32
  const names = [];
17
- const elements = await (await this.enclosingItem.findElement(ChannelView.locators.BottomBarViews.actionsContainer(this.actionsLabel)))
18
- .findElements(ChannelView.locators.BottomBarViews.channelOption);
33
+ const elements = await (await this.enclosingItem.findElement(ChannelView.locators.BottomBarViews.actionsContainer(this.actionsLabel))).findElements(ChannelView.locators.BottomBarViews.channelOption);
19
34
  await Promise.all(elements.map(async (element) => {
20
35
  const disabled = await element.getAttribute('disabled');
21
36
  if (!disabled) {
@@ -81,8 +96,10 @@ class TextView extends ChannelView {
81
96
  * @returns Promise resolving when the clear text button is pressed
82
97
  */
83
98
  async clearText() {
84
- await this.enclosingItem.findElement(ChannelView.locators.BottomBarViews.actionsContainer(this.actionsLabel))
85
- .findElement(ChannelView.locators.BottomBarViews.clearText).click();
99
+ await this.enclosingItem
100
+ .findElement(ChannelView.locators.BottomBarViews.actionsContainer(this.actionsLabel))
101
+ .findElement(ChannelView.locators.BottomBarViews.clearText)
102
+ .click();
86
103
  }
87
104
  }
88
105
  exports.TextView = TextView;
@@ -1,5 +1,21 @@
1
- import { AbstractElement } from "../AbstractElement";
2
- import { ProblemsView, OutputView, DebugConsoleView, TerminalView } from "../..";
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 { ProblemsView, OutputView, DebugConsoleView, TerminalView } from '../..';
3
19
  /**
4
20
  * Page object for the bottom view panel
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.BottomBarPanel = void 0;
4
20
  const AbstractElement_1 = require("../AbstractElement");
@@ -25,7 +41,7 @@ class BottomBarPanel extends AbstractElement_1.AbstractElement {
25
41
  // ignore and move on
26
42
  }
27
43
  const height = (await this.getRect()).height;
28
- if ((open && height === 0) || !open && height > 0) {
44
+ if ((open && height === 0) || (!open && height > 0)) {
29
45
  if (open) {
30
46
  await this.getDriver().actions().clear();
31
47
  await this.getDriver().actions().keyDown(BottomBarPanel.ctlKey).sendKeys('j').perform();
@@ -104,8 +120,7 @@ class BottomBarPanel extends AbstractElement_1.AbstractElement {
104
120
  await this.toggle(true);
105
121
  let action;
106
122
  try {
107
- action = await this.findElement(BottomBarPanel.locators.BottomBarPanel.globalActions)
108
- .findElement(BottomBarPanel.locators.BottomBarPanel.action(label));
123
+ action = await this.findElement(BottomBarPanel.locators.BottomBarPanel.globalActions).findElement(BottomBarPanel.locators.BottomBarPanel.action(label));
109
124
  }
110
125
  catch (err) {
111
126
  // the panel is already maximized
@@ -1,7 +1,23 @@
1
- import { BottomBarPanel } from "../..";
2
- import { AbstractElement } from "../AbstractElement";
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 { BottomBarPanel } from '../..';
18
+ import { AbstractElement } from '../AbstractElement';
3
19
  import { WebElement } from 'selenium-webdriver';
4
- import { ElementWithContexMenu } from "../ElementWithContextMenu";
20
+ import { ElementWithContexMenu } from '../ElementWithContextMenu';
5
21
  /**
6
22
  * Problems view in the bottom panel
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.MarkerType = exports.Marker = exports.ProblemsView = void 0;
4
20
  const __1 = require("../..");
@@ -25,7 +41,8 @@ class ProblemsView extends AbstractElement_1.AbstractElement {
25
41
  * @returns Promise resolving to the filter field WebElement
26
42
  */
27
43
  async clearFilter() {
28
- const filterField = await this.enclosingItem.findElement(ProblemsView.locators.BottomBarPanel.actions)
44
+ const filterField = await this.enclosingItem
45
+ .findElement(ProblemsView.locators.BottomBarPanel.actions)
29
46
  .findElement(ProblemsView.locators.ProblemsView.markersFilter)
30
47
  .findElement(ProblemsView.locators.ProblemsView.input);
31
48
  await filterField.clear();
@@ -36,7 +53,8 @@ class ProblemsView extends AbstractElement_1.AbstractElement {
36
53
  * @returns Promise resolving when the collapse all button is pressed
37
54
  */
38
55
  async collapseAll() {
39
- const button = await this.enclosingItem.findElement(ProblemsView.locators.BottomBarPanel.actions)
56
+ const button = await this.enclosingItem
57
+ .findElement(ProblemsView.locators.BottomBarPanel.actions)
40
58
  .findElement(ProblemsView.locators.ProblemsView.collapseAll);
41
59
  await button.click();
42
60
  }
@@ -60,7 +78,7 @@ class ProblemsView extends AbstractElement_1.AbstractElement {
60
78
  const elements = await this.findElements(ProblemsView.locators.ProblemsView.markerRow);
61
79
  for (const element of elements) {
62
80
  const marker = await new Marker(element, this).wait();
63
- if (type === MarkerType.Any || type === await marker.getType()) {
81
+ if (type === MarkerType.Any || type === (await marker.getType())) {
64
82
  markers.push(marker);
65
83
  }
66
84
  }
@@ -122,9 +140,9 @@ class Marker extends ElementWithContextMenu_1.ElementWithContexMenu {
122
140
  * @returns Promise resolving when the expand/collapse twistie is clicked
123
141
  */
124
142
  async toggleExpand(expand) {
125
- if (await this.getType() === MarkerType.File) {
143
+ if ((await this.getType()) === MarkerType.File) {
126
144
  const klass = await this.findElement(ProblemsView.locators.ProblemsView.markerTwistie).getAttribute('class');
127
- if ((klass.indexOf('collapsed') > -1) === expand) {
145
+ if (klass.indexOf('collapsed') > -1 === expand) {
128
146
  await this.click();
129
147
  }
130
148
  }
@@ -1,6 +1,22 @@
1
- import { BottomBarPanel, ContentAssist } from "../..";
2
- import { TextView, ChannelView } from "./AbstractViews";
3
- import { ElementWithContexMenu } from "../ElementWithContextMenu";
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 { BottomBarPanel, ContentAssist } from '../..';
18
+ import { TextView, ChannelView } from './AbstractViews';
19
+ import { ElementWithContexMenu } from '../ElementWithContextMenu';
4
20
  /**
5
21
  * Output view of the bottom panel
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.TerminalView = exports.DebugConsoleView = exports.OutputView = void 0;
4
20
  const selenium_webdriver_1 = require("selenium-webdriver");
@@ -99,7 +115,7 @@ class TerminalView extends AbstractViews_1.ChannelView {
99
115
  if (timeout > 0 && timer > timeout) {
100
116
  throw new Error(`Timeout of ${timeout}ms exceeded`);
101
117
  }
102
- await new Promise(res => setTimeout(res, 500));
118
+ await new Promise((res) => setTimeout(res, 500));
103
119
  timer += 500;
104
120
  style = await input.getCssValue('left');
105
121
  } while (style === '0px');
@@ -1,5 +1,21 @@
1
- import { WebElement } from "selenium-webdriver";
2
- import { AbstractElement } from "../AbstractElement";
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';
3
19
  /**
4
20
  * Page object representing a user-contributed panel implemented using a Webview.
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
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
19
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
20
  };