Forum Discussion
mfremont-smith
2 years agoOccasional Contributor
I'm not able to close the chrome confirmation dialog with the Confirm object, but I discovered a workaround:
for (let windowCaption of ['Leave site?', 'Reload site?']) {
let confWindow = browser.WaitWindow('Chrome_WidgetWin_1', windowCaption, -1, 0);
if (confWindow.Exists) {
confWindow.Keys('[Enter]');
break;
}
}
Related Content
Recent Discussions
- 11 hours ago