@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);
|
package/internal/manifest.json
CHANGED