There are numerous instructions regarding Confirmation and Declaration in Selenium IDE. We’d mentioned handful of these in Selenese Instructions.
The primary distinction between these instructions is the fact that,
Confirm order won’t quit delivery of test-case if confirmation fails. It’ll record a mistake and continue using delivery of remaining test-case. We utilize confirm instructions in Selenium IDE whenever we nevertheless wish to continue using delivery of test-case even when anticipated result or even coordinated to get a check action.
For instance: After hitting Selenium IDE tabs on questionselenium.com, I Will perform a confirmation to check on if it displaying Desk of material using most records. If confirmation unsuccessful next I possibly could nevertheless check remaining components under Selenium IDE webpage by logging-in a confirmation failing regarding check action that inspections Desk of material.
Claim order may quit delivery of test-case if confirmation fails. It’ll record a mistake and certainly will not continue using delivery of remaining test-case. We utilize statements in situations wherever there’s zero stage continuing additional if anticipated result isn’t coordinated. For instance: After hitting Selenium IDE tabs on questionselenium.com, I actually do a declaration to check on if it’s exposed the best webpage. If declaration unsuccessful next there’s zero stage continuing using remaining test-case that works screening on Selenium IDE webpage.
Its fairly easy. Utilize statements when you wish to prevent delivery of the test-case if anticipated result isn’t matched and utilize confirmation whenever you nevertheless wish to continue delivery of the test-case if anticipated result isn’t coordinated.
|verifyText||css=#gb_2 > span.gbts||xyz|
|assertText||css=#gb_2 > span.gbts||xyz|
|verifyText||css=#gb_2 > span.gbts||Images|
will return false because element “css=#gb_2 > span.gbts” has “Images” text but it will not stop next script execution. It will execute next command “assertText”. Here is the same condition so that it will return false and due to the assert command, it will not execute next command.View more examples on “Assert” and “Verify” related commands and tutorials in selenium IDE software testing tool.