Here is what I am trying to do:
1) go through each row in table
2) go through each cell in rows
3) look for "905" in each cell
4) when "905" is found click on the button with the title "Edit User" in
the row
Here is the code I have:
def test_setupUser
>
> @loginPage.login("joshh", "test")
>
> @browser.link(:href, "/admin/admin").click
>
> @browser.table.rows.each do |row|
>
> row.cells.each do |cell|
>
> if cell.text.include? "905"
>
> row.button(:title, "Edit User").click
>
> end
>
> end
>
> end
>
> end
>
>
Thank you for your help.
--
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]