Hows about giving us the error message you're getting ???
And, you are actually wanting:
button in 2nd div within the 7th cell of the 5th row of any tag which has
an id='tfGrid' attribute ???
Remember that xpath is not 1 based, like most of WATiR ...
But, again, having the error message, and maybe a peek at the chunk of
stuff you're trying to extract , would be quite helpful.
Other than that, you should only be encountering <tr> tags inside either
<table> or <tablebody> tags.
If it's a <table> there are much simpler ways to get to the button ...
ie.table( :id, "tfGrid" )[4][6].div( :index, 1 ).button( :index, 1 ).click
no xpath ... don't know if it will work cause I can't even imagine the html
complicated enough to need something this complex ... but,
please give us more to work with... hope we can help. Look forward to your
response.
Kickin' offline for the night ( 23:54-8:00GMT here ) ... will take a look
tomorrow.
j.
···
On 10/25/05, Vani <vanivk@gmail.com> wrote:
Hello every one,
I am facing problem in Xpath query i have written to access a button
tag
in watir.
Following is the code i have written.
-------------------------------------------------------------------------
require 'watir'
include Watir