InterviewSolution
Saved Bookmarks
| 1. |
You need to retrieve the message in an alert box, without using the getText() method. How will you handle this situation? |
|
Answer» storeAlert() command can be used to retrieve the message from the alert pop-up. The value is stored in a variable that can be returned using a System.out.println statement. You can also use assertEquals() to verify this message. |
|