|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Missing JavaScript ElementI'm trying to test a non-public website that has a lot of embedded JavaScript code. The problem is that I'm not seeing some the elements that I expect under the HtmlUnit application, but I am seeing them by other means. Firefox ( v3.5.3) can "see' the page just fine (i.e no errors on the "tools->error console" window) and if I use the FireBug (see http://getfirebug.com/) plugin it sees the elements of interest as well. So, I'm assuming the JS parsing under HtmlUnit is failing somewhere and I'd like to get some ideas on how to best track it down.
Some additional pieces of info: - using one of the latest 2.7 snapshots of htmlunit - the code is calling waitForBackgroundJavaScript() after getting the page and it reports 0 threads waiting - I'm getting the elements by "id" and the elements of interest aren't in the page's id map (as viewed in debugger) Before trying to load more source code than necessary (e.g. Rhino?) I'd like to know if there's some simple "hook" that can trace the JS parsing as it goes through the page. Any ideas? Bob ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Missing JavaScript ElementHi Bob,
If you're using the latest snapshots you might be able to use the method described here to trace the JS: http://www.nabble.com/-HtmlUnit--HtmlUnit-with-Rhino-graphical-JS-debugger-td25700869.html As always, the best thing is to reduce it to a tiny test case that reproduces the issue, so that you can figure out if it's a bug in HU or not (and if so provide an easy way to replicate it). Take care, Daniel On Sat, Oct 24, 2009 at 7:33 PM, <jiniusatwork-htmlunit@...> wrote: I'm trying to test a non-public website that has a lot of embedded JavaScript code. The problem is that I'm not seeing some the elements that I expect under the HtmlUnit application, but I am seeing them by other means. Firefox ( v3.5.3) can "see' the page just fine (i.e no errors on the "tools->error console" window) and if I use the FireBug (see http://getfirebug.com/) plugin it sees the elements of interest as well. So, I'm assuming the JS parsing under HtmlUnit is failing somewhere and I'd like to get some ideas on how to best track it down. -- Daniel Gredler http://daniel.gredler.net/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
| Free embeddable forum powered by Nabble | Forum Help |