How can scripts be used to enable browser-based pop-ups?
Hello Toby,
One can handle these with these lines of scripts:
try {
link.click();
} catch (UnhandledAlertException f) {
Alert alert = getDriver().switchTo().alert();
alert.accept();
}