title: using watir for a facebook app
body: <p>recently I'm using watir/ruby to publish on facebook automatically. In simple words I managed to write a sentence in the text field, but I can't click on the button "Publish".
  I tried in different ways:</p>
  
  <ul>
  <li>browser.link(:value => '1').click</li>
  <li>browser.button(:value => "Publish").click</li>
  <li>browser.li(:xpath, '//INPUT[@type="submit"]').click</li>
  <li>browser.link(:href =>'javascript:doSubmit()').click</li>
  <li>browser.a(:text =>"Publish").click</li>
  </ul>
  
  <p>but I get the error messages: unable to locate element, or element not visible.</p>
  
  <p>I also tried to write:</p>
  
  <ul>
  <li>browser.button(:value => '1').exists?</li>
  </ul>
  
  <p>but I got the answer "false". Can anyone help me?</p>
  
  <p>Thank you very much</p>