On 8/17/11 1:21 PM, Jarmo Pertman wrote:
I don't see anything in bold, but by using :xpath, then every other
selector will be ignored and the FIRST matched element will be
returned just like when using :id (it just doesn't make sense to
use :xpath and :index together). So, use something better, for
example :text if you can't use any of the :class, :id or similar
locators.
Yep, it works to locate the first table, but the second one is the problem.
I primarily use XPath locators to locate data tables based on columns (table headers) that they have. I can switch to :class locator actually in conjunction with :index => 1. Another option is to to add ids into the source app and switch to id locators.

And nice catch about #tables not supporting :xpath at all. This
support should be added :)

Jarmo
Yes, it would make Watir compatible with Watir-WebDriver for this test case. Do you want me to create a Watir ticket for this?

--
DK
AIM: DKroot1, Skype: DKroot

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to