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


Using "verifyVisible" and "verifyNotVisible" commands in selenium

Sometimes during running the script, you need to verify that specified element on the page is visible or hidden. You can use "verifyVisible" and "verifyNotVisible" commands only for the verification of the element visibility on the page. It will return just "True" and "false" based on the element visibility on page but it will not

You can use mouseOver and mouseOut command when your targeted software web page element has effect on mouse over and mouse out. Targeted element can be button or image or link or anything else. 

Suppose you have one image on software web page and it is changing image when you move mouse on it. Now if you want to see this effect with selenium IDE software test then you can use "mouseOver" and "mouseOut" Commands. Let we see it with example.

"mouseOver" Command

On Google search page, there is one button named "Google search". That button's text becomes dark when we put mouse cursor on button and it becomes light when we remove mouse cursor from button. Let we check it with selenium IDE software testing tool.
New Test
CommandTargetValue
openhttps://www.google.com
mouseOverid=gbqfba
pause5000
mouseOutid=gbqfba

In this example "mouseOver" command will put mouse cursor on button id=gbqfba virtually. You can see its

"pause" Command

"pause" command is simple wait command and useful for stop execution of selenium IDE software automation testing tool for given time. In bellow given example, it will wait for 5 second and then it will execute next "refresh" command.

New Test
Command Target Value
open https://www.google.co.in/
pause 5000
refresh

waitForPageToLoad 10000
open https://www.google.co.in/imghp?hl=en&tab=wi


"refresh" Command

 "refresh" command is useful for refreshing page in selenium IDE software automation testing tool. It will just refresh page and then will start execution of next command. It will not wait for page to reload. So that you need to use "waitForPageToLoad" or any other