On Thu, May 20, 2010 at 3:36 PM, Cristina <[email protected]>
wrote:
> <th>Status</th>
> <th>Organization Name</th>
> If I would like to check that "Status" or "Organization Name" exist on the
page

Several solutions come to mind (none of them tested).

1)
browser.text.include? "Status"
browser.text.include? "Organization Name"

(Not sure is it "include?" or "includes?")

2)
browser.table(how, what)[number][number].text == "Status"
browser.table(how, what)[number][number].text == "Organization Name"

3)
browser.table(how, what).th(:text, "Status").exist?
browser.table(how, what).th(:text, "Organization Name").exist?

(Not sure is it "exist?" or "exists?")

4)
browser.table(how, what).cell(:text, "Status").exist?
browser.table(how, what).cell(:text, "Organization Name").exist?

Željko

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to