@redhat-developer/page-objects 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,4 +120,9 @@ export declare class QuickPickItem extends AbstractElement {
120
120
  * @returns Promise resolving when the item has been clicked
121
121
  */
122
122
  select(): Promise<void>;
123
+ /**
124
+ * Checks if QuickPickItem is selected.
125
+ * @returns Promise resolving to true/false.
126
+ */
127
+ isSelected(): Promise<boolean>;
123
128
  }
@@ -253,6 +253,17 @@ class QuickPickItem extends AbstractElement_1.AbstractElement {
253
253
  async select() {
254
254
  await this.click();
255
255
  }
256
+ /**
257
+ * Checks if QuickPickItem is selected.
258
+ * @returns Promise resolving to true/false.
259
+ */
260
+ async isSelected() {
261
+ const checked = await this.getAttribute(Input.locators.Input.quickPickIsSelected);
262
+ if (checked === 'true') {
263
+ return true;
264
+ }
265
+ return false;
266
+ }
256
267
  }
257
268
  exports.QuickPickItem = QuickPickItem;
258
269
  //# sourceMappingURL=Input.js.map
@@ -445,6 +445,7 @@ export interface Locators {
445
445
  quickPickLabel: By;
446
446
  quickPickDescription: By;
447
447
  quickPickSelectAll: By;
448
+ quickPickIsSelected: string;
448
449
  titleBar: By;
449
450
  title: By;
450
451
  backButton: By;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-developer/page-objects",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Page Object API implementation for a VS Code editor used by ExTester framework.",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -46,5 +46,5 @@
46
46
  "selenium-webdriver": ">=4.6.1",
47
47
  "typescript": ">=4.6.2"
48
48
  },
49
- "gitHead": "7f9bdbf22d797c53c7d8375b7222e66308dbc180"
49
+ "gitHead": "7a5b40f033471534c9afe131f3aacfe4911c0c87"
50
50
  }