|
|
|
Sorry for not providing the complete details
You can use this page to check the actual XPath results. ht tp : / / gro ups. shi k sha . co m / i nd e x.p hp / ne t w ork / Ne t work / index / col lege / 2 / Med ical As per my observation this is working fine in FireWatir. However it does not work in Watir.
Added this comment because in the bug Component/s: 'FireWatir' is mentioned. In my knowledge this is a problem with Watir. Here is the script that I used. Using Watir/Firewatir 1.6.1
require 'watir' Watir::Browser.default = 'ie' br = Watir::Browser.new() url = 'http://groups.shiksha.com/index.php/network/Network/index/college/2/Medical' br.goto url puts br.div(:xpath,'/html/body/div[18]/div[3]/div[2]/div[7]/div/div/div[1]').exists? I tried this with both IE and Firefox and it showed "false" both times. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
Bret