Selenium IDE - When to role assertNotElementWidth too assertNotElementHeight Commands

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
CommandTargetValue
open
storeElementWidthcss=input[type="button"]i
echo${i}
storeElementHeightcss=input[type="button"]j
echo${j}
assertNotElementWidthcss=input[type="button"]34
assertNotElementWidthcss=input[type="button"]${i}
assertNotElementHeightcss=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
CommandTargetValue
open
storeElementWidthcss=input[type="button"]i
echo${i}
storeElementHeightcss=input[type="button"]j
echo${j}
assertNotElementHeightcss=input[type="button"]22
assertNotElementHeightcss=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/
Post a Comment (0)
Previous Post Next Post