Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create table a check point? --- Ankur's article
#1
Solved: 11 Years, 3 Months, 1 Week ago
Hi Ankur,


In your article "How to create a table check point?"
The loop for checking No.of Unread mails is not very clear in the video...

I was struck up with creating loop to check for Unread mails...I am wrote <<
Code:
("Inbox").getroproperty("rows") = "Unread"
>>> is it correct method??

for my code below its not giving Unread mails count...

<<<<
Code:
rows = Browser("Inbox (34) - Yahoo! Mail").Page("Inbox (34) -Yahoo! Mail").WebTable("Inbox").getroproperty("rows")

For i = 2 to rows
Browser("Inbox (34) - Yahoo! Mail").Page("Inbox (34) - Yahoo! Mail").WebTable("Inbox").getroproperty("rows")
If Browser("Inbox (34) - Yahoo! Mail").Page("Inbox (34) - Yahoo! Mail").WebTable("Inbox").getroproperty("rows") = "Unread"  Then
counter =counter + 1
End If
Next
msgbox counter
>>>>

Can you please check where I am wrong?

Thanks,
Akhila
Reply
#2
Solved: 11 Years, 3 Months, 1 Week ago
hi akhila
use this code
Code:
c=0
rows=Browser("Inbox (3) - Yahoo! Mail").Page("Inbox (3) - Yahoo! Mail").WebTable("Inbox").GetROProperty ("rows")
For i=2 to rows
If Browser("Inbox (3) - Yahoo! Mail").Page("Inbox (3) - Yahoo! Mail").WebTable("Inbox").GetCellData(i,1)="Unread" Then

        c=c+1
        
    End If

Next
msgbox c
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  To check table is sortable or not. Zalavadia86 0 1,190 10-13-2016, 06:48 PM
Last Post: Zalavadia86
  QTP standard check point Error? Ramadas 0 2,271 10-31-2013, 01:23 PM
Last Post: Ramadas
  Error Can't Create Data table jsayre 0 2,710 10-01-2012, 11:20 PM
Last Post: jsayre
  Synchronization point vasanthibv@gmail.com 2 3,484 08-08-2012, 05:54 PM
Last Post: pradeep singh
  Synchronization point vasanthibv@gmail.com 2 3,113 08-07-2012, 03:26 PM
Last Post: Tarik Sheth

Forum Jump:


Users browsing this thread: 1 Guest(s)