Fixed assertion of the text

Now it uses the same approach as Selenium Builder Generated code instead
of checking the text of the site.