casper.exists
diff --git a/test.js b/test.js
index e4c0fb2..9d75a06 100644
--- a/test.js
+++ b/test.js
@@ -3,7 +3,9 @@ casper.start('
casper.then(function(){
this.echo(this.getElementInfo('#topics').html); //#topics
- this.echo(this.getElementInfo('#hoge').html); //#hoge
+ if (this.exists('#hoge')) {
+ this.echo(this.getElementInfo('#hoge').html); //#hoge
+ }
this.echo(this.getElementInfo('#economy').html); //#economy
});