From: Brad C. <yo...@br...> - 2005-06-28 02:03:43
|
#1 should work. In order to figure out why it doesn't in your case we will need a failing example (the smaller the better). #2 is possible but highly discouraged and completely unsupported. You can find an example somewhere in the mailing list archives if you want to do this. Brad C --- bd...@kn... wrote: > 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. > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |