Unable to get divs innerHtml Content in HtmlUnittest
vempati suresh
Greenhorn
Joined: Apr 02, 2009
Posts: 3
posted
0
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.
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
posted
0
please open the attachment for my reply and my problem.