how to handle browser pop ups in selenium
void dismiss()-> clicks on the “Cancel” button
as soon as the pop-up window appears.
• void accept()-> clicks on the “Ok” button
as soon as the pop-up window appears.
• String getText()-> returns the text displayed on the alert box.
• void sendKeys(String stringToSend) -> enters the specified
string pattern into the alert box.