We bring already seen examples of "assertElementHeight" too "assertElementWidth" commands. In those examples, nosotros bring seen that "assertElementHeight" too "assertElementWidth" commands volition snuff it if expected too actual summit or width of chemical component subdivision volition match. Else it volition neglect too render fault message too
selenium IDE volition halt execution. "assertNotElementWidth" too "assertNotElementHeight" commands are working reverse to "assertElementHeight" too "assertElementWidth" commands.
"assertNotElementWidth" Command
"assertNotElementWidth" ascendence volition snuff it if element's actual width volition non jibe amongst expected width provided inward value column. If both volition jibe hence selenium IDE volition render fault message similar '[error] Actual value '35' did jibe '35'' too halt the execution. This ascendence is used solely around times inward your software spider web application regression testing.
"assertNotElementHeight" Command
"assertNotElementHeight" ascendence Works same equally "assertNotElementWidth" ascendence but for the summit of element.
Run bellow given examples inward your selenium IDE too discovery operate of both the commands.
New Test | ||
Command | Target | Value |
open | ||
storeElementWidth | css=input[type="button"] | i |
echo | ${i} | |
storeElementHeight | css=input[type="button"] | j |
echo | ${j} | |
assertNotElementWidth | css=input[type="button"] | 34 |
assertNotElementWidth | css=input[type="button"] | ${i} |
assertNotElementHeight | css=input[type="button"] | ${j} |
assertNotElementWidth | //input[@value='<-'] | 34 |
assertNotElementWidth | //input[@value='<-'] | 24 |
In higher upward example, 1st "assertNotElementWidth" ascendence volition snuff it because actual width of push is 35 too nosotros bring expected 34 inward script. But side past times side sec "assertNotElementWidth" volition neglect because both the values volition match. Same affair volition come about inward bellow given instance for "assertNotElementHeight" command.
New Test | ||
Command | Target | Value |
open | ||
storeElementWidth | css=input[type="button"] | i |
echo | ${i} | |
storeElementHeight | css=input[type="button"] | j |
echo | ${j} | |
assertNotElementHeight | css=input[type="button"] | 22 |
assertNotElementHeight | css=input[type="button"] | ${j} |
assertNotElementWidth | //input[@value='<-'] | 34 |
assertNotElementWidth | //input[@value='<-'] | 24 |
More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/