On Tue, Dec 29, 2009 at 1:33 PM, Hans Dushanthakumar <[email protected]>
wrote:
>   browserObj.elements_by_xpath(".//*...@id='bookEntry']/div")

If I understood your xpath, you are trying to access a div that is a child
of an element that as an id. Something like this should work:

browser.div(:id, 'bookEntry').div(:index, 1)

I do not think safariwatir has xpath support.

Željko
--
watir.com - community manager
watirpodcast.com - host

-- 
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

Reply via email to