driver.switchTo().alert().accept();
The above code can handle only one alert and how can we handle if we have multiple alerts?
driver.switchTo().alert().accept();
The above code can handle only one alert and how can we handle if we have multiple alerts?