From: <bd...@kn...> - 2005-06-28 01:37:42
|
Hi, I started using HtmlUnit a couple of weeks ago, and I've generated quite a complex suite of tests (using HtmlUnit 1.6), and I think that HtmlUnit is really an excellent piece of work. However, I have a couple of problems. 1) accessing any html element that is dynamically composed by javascript does not work for me e.g. a) the contents of a table that is composed in the browser (I'm referring to textual values inside the table data elements, not to input elements inside the table data elements); b) fields that have their value set dynamically when the page has loaded (the values are in the fields, but HtmlUnit tests see the field as empty). In both these cases, the javascript is executing in the page body, not in the header (if that is significant). Please let me know if I should not expect a) and b) to work - from what I have read in the docs, and in this mailing list, it certainly seems that a) should be working. 2) I would also like to be able to access the values of Javascript variables - certain parts of my site are personalised by javascript which is composed on the fly, depending on a user's history and preferences. It would be great if I could actually test the values of javascript variables in my unit tests, and even execute javascript functions. I realise that in the absence of this, I could do some of these tests if 1)b) above worked. |