In whatsoever software application regression attempt case, y'all postulate to verify as well as hold off for unlike atmospheric condition equally per attempt scenario requirement. Selenium IDE has many unlike buit in VERIFICATION as well as WAITFOR commands to handgrip that detail situation. Today nosotros volition expect at "verifyElementNotPresent" as well as
"waitForElementNotPresent" commands amongst examples. First of all permit me push clit y'all both of them as well as thence volition expect at practical example.
"verifyElementNotPresent" Command
"verifyElementNotPresent" ascendency volition verify that targeted chemical percentage is acquaint on page or not. It volition conk if targeted chemical percentage is non acquaint on page else it volition return [error] truthful inwards execution log. You tin dismiss thought instance of "verifyElementPresent" ascendency which plant contrary to "verifyElementNotPresent" command.
VIEW WEBDRIVER EXAMPLE OF "verifyElementNotPresent"
VIEW WEBDRIVER EXAMPLE OF "verifyElementNotPresent"
"waitForElementNotPresent" Command
Selenium IDE volition hold off till targeted chemical percentage of "waitForElementNotPresent" ascendency disappears from the page. Once targeted chemical percentage disappears from the page, selenium IDE volition execute side past times side command. Maximum hold off fourth dimension volition hold upwards default timeout fourth dimension of selenium IDE.
Example of "verifyElementNotPresent" as well as "waitForElementNotPresent" Commands
| New Test | ||
| Command | Target | Value |
| open | ||
| verifyElementNotPresent | //input[@id='text3'] | |
| waitForElementNotPresent | //input[@id='text4'] | |
| verifyElementNotPresent | //input[@id='text3'] | |
In higher upwards example, 1st "verifyElementNotPresent" ascendency volition conk because on that stage, targeted chemical percentage //input[@id='text3'] is non acquaint on page. sec "waitForElementNotPresent" ascendency volition hold off for targeted chemical percentage to seem on page. concluding "verifyElementNotPresent" ascendency volition provide mistake because on that phase targeted chemical percentage is available on page.