Showing posts with label chooseOkOnNextConfirmation command. Show all posts
Showing posts with label chooseOkOnNextConfirmation command. Show all posts

"chooseCancelOnNextConfirmation" command

"chooseCancelOnNextConfirmation" command used with confirmation popup box. When you are performing some major action like deleting records at that place you can see this kind of confirmation message box to proceed or to cancel the process. "chooseCancelOnNextConfirmation" command will click on cancel button on this kind of action.

Here is the example of "chooseCancelOnNextConfirmation" command.In bellow given example, selenium will click on cancel button of confirmation box. Here it is predefined action to perform on next command.

New Test
CommandTargetValue
openhttp://www.w3schools.com/ js/tryit.asp?filename =tryjs_confirm
selectFrameview
chooseCancelOnNext Confirmation

click css=button
assertConfirmation Press a button!

"chooseOkOnNextConfirmation" command