Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to get divs innerHtml Content in HtmlUnittest

 
vempati suresh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please open the attachment for my reply and my problem.
 
vempati suresh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please open the attachment
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing attached
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic