selenium command “chooseCancelOnNextConfirmation” and “chooseOkOnNextConfirmation” with example

“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 … Read more

Difference between “verifyAlert” and “assertAlert” command in selenium

There are too many commands starting with “verify” and “assert” text. Both these commands are the same excluding one difference and that difference is after the execution of the “verify” command if the condition matches or not selenium will execute the next commands but in case of execution of the “assert” command if the condition … Read more

Using “answerOnNextPrompt” and “assertPrompt” commands in selenium

“answerOnNextPrompt” command Sometime if you seen , there is display text box with popup message to write some thing in message box. In such popup “answerOnNextPrompt” command is useful to providing answer in popup message. “answerOnNextPrompt” command will type the message whatever you want to type in popup. Here is one perfect example of “answerOnNextPrompt” … Read more

Use of “altKeyDown” and “altKeyUp” in selenium with example

“altKeyDown” command “altKeyDown” command works just like you are pressing alt key of your keyboard. It will keep pressed alt key until “altKeyUp” not executed. You can use this command when you need to perform any action by pressing alt key. Let me show you use of “altKeyDown” command with example. In bellow given example, … Read more