Hello Abhi,
Please find below code
'Consider that your WebTable name as 'ManojTable'
'For gettings Rows Count of WebTable
RowsCount=Browser("micclass:=Browser").Page("micclass:=Page").WebTable("name:=ManojTable").RowCount
CenterCell=(RowsCount/2)+0.5
MsgBox
Browser("micclass:=Browser").Page("micclass:=Page").WebTable("name:=ManojTable").GetCellData(CenterCell,CenterCell)
*Best Regards,*
*Manoj Kapuganti*
On Sunday, 1 September 2013 12:57:15 UTC+5:30, Abhi wrote:
>
>
>
> Hi All, Good Morning..
>
>
> I got some requirement that always need to get the cell data from
> center(highlighted in red color) cell. Always rows count and column count
> are dynamic but are odd numbers.
>
>
> 3 * 3
>
> 5 * 5 or 5*3
>
>
> Example:
>
>
> First Login:
>
>
> [image: Inline image 1]
>
>
> Second Login
>
> [image: Inline image 3]
>
>
> Always need to get data from center cell of webtable. Can you anyone
> provide me the logic?
>
>
> Thanks and regards
>
> Abhi
>
>
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.