On Thu, May 20, 2010 at 3:36 PM, Cristina <
cristina...@gmail.com> 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