I'm trying to retrieve the text from within the <dd> tags from the
html shown below. i'm running firewatir on a mac osx and have the jssh
plugin installed.

<div id='search_summary'>
   <dl class='summary'>
      <dt>You searched for:</dt>
         <dd>
            7 nights from Saturday 4th September 2010<br />
            Sharm El Sheikh<br />
            2 Adults
        </dd>
     </dl>

my code is as below and confirms that the text exists.
    if @browser.element_by_xpath(".//*...@id='search_summary']/dl/
dd").nil?
        puts "The text is not existent"
    else
        puts "The text is existent, it is:"
        puts @browser.element_by_xpath(".//*...@id='search_summary']/dl/
dd").innerText()
    end

however the output of the text fails with the error
Unable to locate element, using :jssh_name
(Watir::Exception::UnknownObjectException)
Anyone know where i've gone wrong ?

thanks

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to