1.

Which Two Commands Can Be Used To Check That An Alert With A Particular Message Popped Up?

Answer»

The following COMMANDS are available within Selenium for processing Alerts:

  • getAlert()
  • assertAlert()
  • assertAlertNotPresent()
  • assertAlertPresent()
  • storeAlert()
  • storeAlertPresent()
  • verifyAlert()
  • verifyAlertNotPresent()
  • verifyAlertPresent()
  • waitForAlert()
  • waitForAlertNotPresent()
  • waitForAlertPresent()

The AlertPresent() and AlertNotPresent() functions check for the existence or not of an alert – regardless of it’s content. The Alert() functions ALLOW the CALLER to specify a pattern which should be matched. The getAlert() method also exists in Selenium RC, and returns the text from the PREVIOUS Alert displayed.

SELENIUM IDE INTERVIEW Questions and Answers

The following commands are available within Selenium for processing Alerts:

The AlertPresent() and AlertNotPresent() functions check for the existence or not of an alert – regardless of it’s content. The Alert() functions allow the caller to specify a pattern which should be matched. The getAlert() method also exists in Selenium RC, and returns the text from the previous Alert displayed.

SELENIUM IDE Interview Questions and Answers



Discussion

No Comment Found