title: Casper JS: TypeError: 'null' is not an object
body: <p>I am trying to grab the "David Welsh" text on this page: <a href="http://foster.uw.edu/faculty-research/directory/david-welsh/" rel="nofollow">http://foster.uw.edu/faculty-research/directory/david-welsh/</a></p>
  
  <p>When I do <code>document.getElementById('Boundless').children[0].children[2].children[0].children[1].children[0].innerHTML</code> in the browser console, I successfully select the text I want, but when I run my js file in Terminal, I get the error:</p>
  
  <p><code>TypeError: 'null' is not an object (evaluating 'document.getElementById('Boundless').children')</code></p>
  
  <p>Why is this working in my browser but not in my local js file?</p>
  
  <pre><code>casper.then(function(){
      this.each(links,function(self,link){
          self.thenOpen(link,function(a){
              this.echo(this.getCurrentUrl());
              var name = document.getElementById('Boundless').children[0].children[2].children[0].children[1].children[0].innerHTML;
                  casper.echo(name);
              }
          });
      });
  });
  </code></pre>