While working with GUI testing, you may come across text, which is painted in an HTML canvas. If you try to record or use a verification point (VP) with this text, IBM Rational Functional Tester (RFT) fails to identify this.
For instance, you have a web page as below and trying to verify the text "Big Smile " :
RFT identifies the Document, but not the text.
Let us have a look at the DOM model of this page, you could use Firebug on Mozilla Firefox or Developer tools on Microsoft Internet Explorer. You will see the below DOM model of the page:
You could see clearly that, text is part of Canvas element and a message that it is HTML 5 tag (you can ignore other parts of the message about the browser support for HTML 5 as it is not relevant for this blog). HTML 5 is not yet supported by RFT. Refer to this RFE: RFT Support for HTML5
However, you may have the question, how do we know if Canvas or any other HTML element is part of HTML5 (if the DOM model does not mention this explicitly)?
Well, you could manually check the HTML standard document by W3. Verify that the found element canvas or other controls is HTML 5, in case you can find that canvas was added as new element in HTML 5: HTML5 Differences from HTML4