Selenium Java - Handling Windows, Frames, and Alerts
What does the
accept() method do when called on a JavaScript alert in Selenium?accept() method do when called on a JavaScript alert in Selenium?accept() method is used to click the OK button on an alert popup.dismiss() method clicks Cancel, so accept() must click OK.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions