how to select option javascript pop-up selenium code example Example: selenium how to automate javascript dialogs webDriver.switchTo().alert()