If you are using below command in for loop or any loop then you need to again fetch the webelement inside the loop once again this is because by clicking on button first time , it refresh the page thus you required to again fetch the webelement.
selenium.click("css=button.btn.btn-primary");
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7a6a270e-6e89-4106-b3cf-abdc9a79c848%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$$("button.btn.btn-primary")
$$("button.btn btn-primary")
$$("button.btn-primary")