fixed mistake in docs
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -508,8 +508,8 @@ This method will retrieved a base64 encoded version of any resource behind an ur | ... | @@ -508,8 +508,8 @@ This method will retrieved a base64 encoded version of any resource behind an ur |
508 | ``` javascript | 508 | ``` javascript |
509 | var logo = null; | 509 | var logo = null; |
510 | casper.start('http://foo.bar/', function(self) { | 510 | casper.start('http://foo.bar/', function(self) { |
511 | var imgUrl = document.querySelector('img.logo').getAttribute('src'); | ||
512 | logo = self.evaluate(function() { | 511 | logo = self.evaluate(function() { |
512 | var imgUrl = document.querySelector('img.logo').getAttribute('src'); | ||
513 | return__utils__.getBase64(imgUrl); | 513 | return__utils__.getBase64(imgUrl); |
514 | }; | 514 | }; |
515 | }).run(function(self) { | 515 | }).run(function(self) { | ... | ... |
-
Please register or sign in to post a comment