How to click on a browser alert using Ruby and Selenium
Sometimes an action in Selenium will trigger an alert box to appear. In this case, you will need to dismiss this alert to continue. Some alerts like the one shown above have two options, “OK” and “Cancel”. The following Ruby …