Hi,
I want the text Condition with main rank 1 and subrank upto 20 is
working from the div tag.
Source HTML :
div id=answer_text
Text - Condition with main rank 1 and subrank upto 20 is working
br/
br/
a onclick=showForm(); href=#
Text - How useful was my answer?
br/
br/
I have written below
Hi Cyril
The return you are getting is right, as the div, contains all the text.
Try this:
require 'watir'
ie=Watir::IE.attach(:title,//)
a=ie.div(:id,'answer_text').text
b=a.split(Text - How useful was my answer?)
puts b[0].strip
Regards
Pallavi.
On Mon, Aug 16, 2010 at 1:43 PM,