RE: [Webunitproj-users] how to retreive inner text from WebTag?
Brought to you by:
dgan
From: Doron <dg...@sh...> - 2002-11-06 15:53:45
|
Hi, Lets keep this simple. The "inner HTML" is basically everything inside the HTML tag. This means that if there is more than just plain text, it will be the actual HTML inside that tag. This is as far as we should go with this because that is basically how the browsers behave as well. See further comments below --> -Doron On Wed, 2002-11-06 at 10:10, Eri...@al... wrote: > BK wrote: > >> Is there a way to get the inner text from a Webtag? > Looking at thet code, I don't see it. > > >>I noticed the WebOptionField class provides this > Also, DefaultWebTextField and DefaultTableCell provide this. > > >>however we would like to grab the inner text from any tag > What should the code return for multiple items selected in list box? A > comma or space delimited list? That doesn't sound right. ->> Its just the HTML text inside the "select" tag. > What should the code return with multiple rows/columns in a table? ->> Whatever the text is inside the <TABLE> tag. > What should the code return for nested data? -- what if the <div> has > nested tags? Should the nested data also be returned? ->> Yes, the nested data should be returned. > > What do you all think? > How does HttpUnit expose this text? > > > > -----Original Message----- > From: Brian Knorr [mailto:bt...@ne...] > Sent: Tuesday, November 05, 2002 5:38 PM > To: web...@li... > Cc: dg...@sh... > Subject: [Webunitproj-users] how to retreive inner text from WebTag? > > > > Is there a way to get the inner text from a Webtag? I noticed the > WebOptionField class provides this, however we would like to grab the > inner text from any tag... for example, if we have the following <div > id="orderNumber">1234567</div> we would like to be able to grab the > inner text "1234567". Currently this is halting our progress... please > advise.... thanks. > > > > Brian > > |