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
- 6 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago