How to verify table cell number

1 view
Skip to first unread message

srik

unread,
Aug 3, 2009, 10:02:10 AM8/3/09
to iTest2
Hi Zhimin,

Thanks a lot Zhimin for giving useful hints.

Issues: Watir / iTest2

#1 how to verify table cell integer value / Watir

#2 how to verify sort order in table /Watir

#3 I am unable to execute script using 1click (browser.link(:text,
"Communiy Calendar").click).it's working with IE Explorer, but not in
FF for the same I am inserting above script 2 times.
browser.link(:text, "Communiy Calendar").click
browser.link(:text, "Communiy Calendar").click
then it's working with FF but not in IE. please help me regarding the
same issues.

Please have a look and let me know if you have any issue.

Thanks
Srikanth

Zhimin

unread,
Aug 3, 2009, 6:47:16 PM8/3/09
to iTest2
Hi Srikanth,

> #1 how to verify table cell integer value / Watir

browser.cell(:id, "surveyId").text.should match(/\d+/) # match
integer

> #2 how to verify sort order in table /Watir

The verification in Watir applies the source (HTML), to verify sort
order, the general approach is to add a flag in the HTML source.

<tr>
<th id='dateColumn' class="desc"></th>
</tr>

> #3 I am unable to execute script using 1click (browser.link(:text,
> "Communiy Calendar").click).it's working with IE Explorer, but not in
> FF for the same I am inserting above script 2 times.
> browser.link(:text, "Communiy Calendar").click
> browser.link(:text, "Communiy Calendar").click
> then it's working with FF but not in IE. please help me regarding the
> same issues.

From memory, FF or IE deal the whitespaces in link text differently.

If you can send me the HTML source of your page, I am happy to do some
investigation.

Cheers,
Zhimin
Reply all
Reply to author
Forward
0 new messages