Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : functional testing with funcunit

$
0
0
You should be able to get what you need by moving the text retrieval and equal check to a function to the FuncUnit chain:

  1. S("#callinize_incoming_outgoing").visible();
  2. S(function() {
  3. var name = S("#callinize_incoming_outgoing").text();
  4. equal(name, "OUTGOING CALL", "The title from the page is: " + name );
  5. });


Viewing all articles
Browse latest Browse all 3491

Trending Articles