@cloudscape-design/browser-test-tools 3.0.21 → 3.0.22

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.
@@ -31,6 +31,7 @@ export default class BasePageObject {
31
31
  isSelected(selector: string): Promise<boolean>;
32
32
  isExisting(selector: string): Promise<boolean>;
33
33
  isDisplayed(selector: string): Promise<boolean>;
34
+ isClickable(selector: string): Promise<boolean>;
34
35
  getElementAttribute(selector: string, attributeName: string): Promise<string>;
35
36
  getElementProperty(selector: string, propertyName: string): Promise<string | number | boolean | Element | ChildNode | ParentNode | Document | HTMLElement | CSSStyleDeclaration | DOMStringMap | DOMTokenList | HTMLCollection | HTMLSlotElement | NamedNodeMap | ShadowRoot | OnErrorEventHandler | NodeListOf<ChildNode> | {
36
37
  <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
@@ -179,6 +179,10 @@ class BasePageObject {
179
179
  }
180
180
  return elements[0].isDisplayed();
181
181
  }
182
+ async isClickable(selector) {
183
+ const element = await this.browser.$(selector);
184
+ return element.isClickable();
185
+ }
182
186
  async getElementAttribute(selector, attributeName) {
183
187
  const element = await this.browser.$(selector);
184
188
  return element.getAttribute(attributeName);
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "61879b1cca4e4f351aa4bcf07fbaedb4a1d903e6"
2
+ "commit": "7f2affb99b49875d4dc124407338d0d2f26c7d57"
3
3
  }
package/package.json CHANGED
@@ -60,6 +60,6 @@
60
60
  "type": "git",
61
61
  "url": "git+https://github.com/cloudscape-design/browser-test-tools.git"
62
62
  },
63
- "version": "3.0.21",
63
+ "version": "3.0.22",
64
64
  "license": "Apache-2.0"
65
65
  }