Thanks John for a quick reply will try and get back.
On Thu, Oct 1, 2009 at 6:02 PM, John Kolokotronis <[email protected]>wrote:
>
> I've come across this before - there are typically additional
> characters retrieved using the .text method with FireWatir - you could
> just use a gsub on the text to strip out the extra characters (if
> there are no matches, as will be the case for IE, no characters will
> be stripped out). I think you can also use element_by_xpath and then
> its' innerHTML method to get the same text in both IE and Firefox,
> like so:
>
> @browser.element_by_xpath("//div<yourDivsXpath>/").innerHTML
>
> Regards,
>
> John
>
> On Oct 1, 12:41 pm, Pallavi Sharma <[email protected]> wrote:
> > Hi All
> >
> > I have a problem, I have a DIV tag for which i need to fetch the text. Is
> it
> > possible that when i open the page in IE and use watir and when i open
> the
> > page in firefox and use Fire watir the text fetched are a bit different
> and
> > contains some extra characters
> >
> > Please let me know if there is a solution for the same. Or is it
> inevitable
> > ?
> >
> > Thanks
> >
> > Pallavi.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---