title: Can't find variable: page in PhantomJS
body: <p>I'm beginner in test, both in Unit Test and UI Test</p>
  
  <p>I'm trying to create a UI test for my login page using following code:</p>
  
  <pre><code>console.log("Teste de Login");
  
  var page = require('webpage').create();
  page.open('http://localhost/login', function(status) {
      console.log("Page loadeed");
  
      if(status === "success") {
          page.render('example1.png');
      }
  
      page.evaluate(function() {
          // $("#numeroUsuario").val("99734167");
          document.getElementById('numeroUsuario').value = "99734167";
          page.render('exampl2.png');
  
          // $("#formLogin").submit();
          page.render('example3.png');
      });
  
      phantom.exit();
  });
  </code></pre>
  
  <p>But this code returns the following error:</p>
  
  <pre><code>&gt; phantomjs.exe ./testLogin.js
  Teste de Login
  Page loadeed
  ReferenceError: Can't find variable: page
  
    phantomjs://webpage.evaluate():4
    phantomjs://webpage.evaluate():8
  </code></pre>
  
  <p>Where element <code>$("#numeroUsuario")</code> exists. What have I done wrong?</p>