Showing posts with label click command. Show all posts
Showing posts with label click 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 check and uncheck commands only with checkbox and radio buttons of webpage. Let we see how we can use check command in selenium IDE.

"check" command

check command will check the check box if have check box on your webpage. You can also select radio button using check command.

New Test
CommandTargetValue
openmail.google.com/
checkid=PersistentCookie
uncheckid=PersistentCookie

In above example, check command will check the check box with id=PersistentCookie. You can use id of radio button if you have radio button on page. You can also use "click" command at place of "check" and

 "clickAt" selenium IDE command

"clickAt" command is useful when you need to click on specific x,y position of any element of software web application. Sometime this types of conditions occurs at that time you can use clickAt command. You need to fill x,y position value in value field of command.

In bellow example of selenium IDE software automation tool, It will click at 10,10 position on element "css=#gb_2 > span.gbts".

New Test
Command Target Value
open https://www.google.co.in/
clickAt css=#gb_2 > span.gbts 10,10

You can use "clickAt" command when "click" command not working. I have seen many times where "click"

"click" command

"click" command is another mostly used command in selenium ide software testing tool. you can use it when you want to click on any element like Link, Text box, radio button, check box etc of your software web application.

In below given example, click command will click on element "css=#gb_2 > span.gbts" of software application if it is present on page otherwise it will display error message in selenium IDE.

New Test
Command Target Value
open https://www.google.co.in/
click css=#gb_2 > span.gbts

"clickAndWait" Command

"clickAndWait" command is some different than "click" command. It will wait for page to load means next command will be not executed until page not loaded successfully. You need to use this command when your