Selenum IDE Example of “assertElementPresent” and “assertElementNotPresent” commands

“assertElementPresent” Command Selenium assert element present command is useful to confirm element availability on page after user taking some action or navigate to some other page. Selenium assert element present will force selenium to stop execution if targeted element not found on the page. It will continue execution if return result of condition “assertElementPresent” = … Read more

Use of “verifyLocation” and “assertLocation” in selenium

“verifyLocation” Command Soometimes you need to check the URL of current selected window to perform some actions. In such cases, selenium has two commands to verify the absolute URL of the current selected page. “verifyLocation” and “assertLocation”. “verifyLocation” command will just verify your trageted URL with absolute URL of the current page and returns error … Read more

Example of “waitForAllFields” and “waitForAllButtons” command in selenium IDE

“waitForAllFields” Command Sometimes when page speed or internet speed is too much slow and page taking too much time to load its element in that case if your targeted element not appears on page withing timeout period then your script will fail. In such cases you need to use commands like “waitForAllFields” and “waitForAllButtons” in … Read more

use “storeElementHeight” and “storeElementWidth” to measure element’s height and width in selenium

“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 … Read more