title: using Google Translate on phantomjs
body: <p>I happened to write a program to use the google translate (<a href="http://www.translate.google.com" rel="nofollow">http://www.translate.google.com</a>) 
  using PhantomJS.</p>
  
  <p>But I'am unable to insert text into the textarea . .I’ve searched a lot but nothing proved useful . However i am able to print the result content  .
  Here's my code:</p>
  
  <pre><code>var page = require('webpage').create();
  page.open("http://translate.google.com", function(status) {
  if ( status === "success" ) {
          console.log(status);
      page.includeJs("//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js", function() { 
     var c=page.evaluate(function(){$('source').val("sample text");
     return  $('#source').text();
  });
  
  var f= page.evaluate(function() {     
      $('#source').val("sbjbsdfsdfbbs");          
              return $('#source').text();
          });
  console.log(f);//should print input  text
  var result= page.evaluate(function() {     
      $('#source').val("sbjbsdfsdfbbs");          
              return $('#result_box').text();
          });
  console.log(result);
      phantom.exit()
    });
  }
  });
  </code></pre>