| || |
web - getproperty .text only for parent
I have in the html code a DIV and I want to extract the text that is displayed only for that DIV.
The problem is that in my DIV there are some more child elements with some text (a SPAN and a LINK-A) and when i use the above line it will be displayed all texts (from DIV + from SPAN + from LINK)
How can I extract only the text from DIV?
Re: web - getproperty .text only for parent
You can use StringTokenizer which is available in util package. You can specify the delimiter and you can extract the desired text.
Note: if you give the example I can help you with the example.