*
The moose likes Other Open Source Projects and the fly likes Unable to get divs innerHtml Content in HtmlUnittest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Unable to get divs innerHtml Content in HtmlUnittest" Watch "Unable to get divs innerHtml Content in HtmlUnittest" New topic
Author

Unable to get divs innerHtml Content in HtmlUnittest

vempati suresh
Greenhorn

Joined: Apr 02, 2009
Posts: 3
Hi,

this is suresh
presently am working in a project for that i need to do HtmlUnitTest.
for that i am using HtmlUnitTest using java program.
after entering into the first page i am searching for some ionformation i am able to get into the second page after passing all values int he first apge and submitting the first apge.
in the seconf page i have div tags ,for the div i am showing the content from the javascript divId.innerHTML .
but while testing the application i am unable to access the anchor tags and innerdivs which are dynamically added fromt he innerHTML.
i didn;t find any help from google.

please help me if any body know this.
i need it urgently.

thanks ina dvance,


sureshv
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It depends on how it's being "dynamically added". If it's being added via JavaScript then that HTML won't be available when the page initially loads: unless the HTTP client you're using executes JavaScript and can examine the resulting DOM you'll probably have to go a different route (if I've understood what you've said, anyway).
vempati suresh
Greenhorn

Joined: Apr 02, 2009
Posts: 3
please open the attachment for my reply and my problem.
vempati suresh
Greenhorn

Joined: Apr 02, 2009
Posts: 3
please open the attachment
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

There is nothing attached


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to get divs innerHtml Content in HtmlUnittest
 
Similar Threads
how to load HTML in DIV
I need help to remove HTML tags
performance issue with DIV tags
Struts - Ajax help needed!
Trying to get layout worked out for three content panes (using facelets template)