Showing posts with label storeElementHeight command. Show all posts
Showing posts with label storeElementHeight command. Show all posts

"assertElementHeight" and "assertElementWidth" are assertion commands and useful to verify and assert if expected height and with don't match with actual height and width of element on software application page. I posted article about "storeElementHeight" and "storeElementWidth" before and described how

"storeElementHeight" command

"storeElementHeight" command useful to measure the height of elements like button, textbox, images etc. You need to measure element's height and width in pixel to pixel testing. Using selenium, you can measure it very easily. "storeElementHeight" command returns height of targeted element and store it into variable specified in value field.

Here is the one simple example of measuring height of google search box(Text field). In bellow given example, "storeElementHeight" command will store height of search box into variable "i". "echo" helps you to see variable's value (height of an element).