How to accept pop-ups?

How to accept pop-ups?

Hey Richard,

Here’s how you can do it:

driver.switchTo().alert().accept();