SUBSCRIBE HERE TO GET POST UPDATES VIA EMAIL :

Delivered by FeedBurner

"click" and "clickAndWait" commands with example in selenium IDE

"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
are clicking somewhere on page of software web application and page start reloading content.

In below given sample script, clickAndWait command will click on "css=#gb_2 > span.gbts" and wait for page to load successfully.

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

2 comments:

  1. Excellent blog

    ReplyDelete
  2. After executing clickAndwait command, it showing [error] Timed out after 30000ms... Plz help me for this.

    ReplyDelete