There is only way to solve this, xpath :
text_field(:test_newbox_1, :xpath =
'.//td[@class=waffle-find-replace-dialog-label]/../../tr[2]/td[2]/input')
or
text_field(:test_newbox_4, :xpath =
'.//div[@class=modal-dialog-content]/table/tbody/tr[1]/td[2]/input')
пятница, 22 ноября 2013 г.,
Sorry, for long response.. Yes. Method table is available, but i can't
figure out, how request can be created ... I tried :
div(:test_el8, :class ='modal-dialog-content' ).table(:name_table,:index
= 0).text_fields[1]
div(:test_el8, :class ='modal-dialog-content' ).table(:index =
That's too bad. I guess that's because the gem attempts to standardize things
between Watir and Selenium. Maybe Dan's suggestion? If the gem doesn't support
daisy-chaining method calls you might actually have to use xpath.
I took a quick look at the rdocs for the gem and it looks like there's
Another way to locate these would be by the aria-labelledby attribute which
appears to be unique. See below.
b.element(:css,
'input[aria-labelledby=:j6.findLabel]').to_subtype.set(things)
b.element(:css,
'input[aria-labelledby=:j6.replaceLabel]').to_subtype.set(stuff)
On Friday, November
Yes. I use 'cheesy' gem. It is pity, but this implementation doesn't work
.tbody isn't understood as a method here.
пятница, 15 ноября 2013 г., 0:05:43 UTC+4 пользователь johnssn написал:
That last comment I made wasn't right since you're trying to get to the
text field. Maybe this instead
Think you could replace tbody with table, since the first table in the div has
the text fields
On Friday, November 15, 2013 2:42 AM, QOExcel qoex...@gmail.com wrote:
Yes. I use 'cheesy' gem. It is pity, but this implementation doesn't work
.tbody isn't understood as a method here.
Thank you very much for your help!! I will read beforehand
http://watir.com/support
http://watir.com/support
It works actually .. But i use Page Object style for writing code,
something like this:
span(:find_replace_dialog_matchcase_checkbox_3,:id = 'find-replace-regex')
or
You almost never need to resort to xpath if you're using watir. Something like
this?
b.div(:class, 'modal-dialog-content').tbodys[0].text_fields[0]
b.div(:class, 'modal-dialog-content').tbodys[0].text_fields[1]
On Wednesday, November 13, 2013 3:55 AM, QOExcel qoex...@gmail.com wrote: