I spent a large amount of time today trying to find out why I can’t find the link that I can see on the page, and see in the DOM when using the IE DevToolBar.
I was trying to write an automated acceptance test to test that a birth date could not be made null.
Pop quiz, whats wrong with this HTML?
<!-- This is a comment --!>
Turns out that IE can recognize that “–!>” is intended to be the end of a comment even though it should be:
<!-- This is a comment -->
But Watij does not. Infact Watij treats the comment as not ending, and the rest of the page as comment.
So if you are using a WatiX framework, and can’t see a link or image on a page, check to make sure you have well formed comments.
Advertisement

