.isVisible()
Returns whether an alert is visible.
Usage
alert.isVisible()
Returns
Promise
(Boolean
): Whether the alert is visible or not.
Support
Platform | Supported |
---|---|
iOS | Yes |
Android | Yes |
Web | Yes |
Examples
TODO: Description here.
const { alert, expect } = require("appdriver");
(async () => {
const visible = await alert.isVisible();
await expect(visible).toBeTruthy();
})();