The Html code of my click page is :
You can use jQuery and then do something like this $("#publishButton-ns").click();
http://www.jQuery.com/