Selenium IDE Tutorials - assertConfirmationNotPresent too assertConfirmationPresent Example

My all tutorials on Selenium IDE are alongside practical examples too you lot tin thought all dominance examples on Example Page -1 too Example Page -2. Let me depict you lot ii to a greater extent than selenium IDE commands which are related to confirmation message. We convey already seen how to use
"assertConfirmation" and "verifyConfirmation" commands. "assertConfirmationNotPresent" too "assertConfirmationPresent" are real related to them. Let me starting fourth dimension depict them too and thence furnish you lot i unproblematic example.

"assertConfirmationNotPresent" Command
"assertConfirmationNotPresent" dominance volition popular off if at that topographic point is non whatever confirmation message introduce on software spider web application page when it is executed. Else if at that topographic point is whatever confirmation message on page too thence it volition render "[error] true" inwards log too destination the script execution.

Example 1 :
New Test
CommandTargetValue
open
assertConfirmationNotPresent

clickcss=button
assertConfirmationNotPresent
j
clickcss=div > input[type="button"]

In inwards a higher house example, When "assertConfirmationNotPresent" dominance executed starting fourth dimension time, it volition popular off because at that topographic point is non whatever confirmation message. But when 2d "assertConfirmationNotPresent" dominance volition neglect because confirmation message is generated past times previous "click" command.

"assertConfirmationPresent" Command
"assertConfirmationPresent" Command plant contrary to "assertConfirmationNotPresent" command. It volition popular off if at that topographic point is whatever confirmation message on page. Else it volition render "[error] false" inwards log too destination the execution.

Example ii :
New Test
CommandTargetValue
open
assertConfirmationPresent

clickcss=button
assertConfirmationPresent
j
clickcss=div > input[type="button"]

In this example, 1st "assertConfirmationPresent" dominance volition neglect because at that topographic point is non whatever confirmation message introduce on page on that stage

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post