Hi, I think , As you say , each time the rows and columns are increased dynamically. We can follow the below steps:
a. First find , the Row count & Column count
b. Compare the values of Row & Column value with the previous Row &
Column count , if found change (increase )
c. Divide the current value of Row & Column count by 2
d. Check , after divide if their is a value after decimal point then
add value 1 to the before decimal point for Row & Column value after
division by removing the value after decimal
Ex: Row count is : 3 , Column count is : 3
Divide : 3/2 Divide : 3/2
Ans : 1.5 Ans : 1.5
Add : 1+1 = 2 Add: 1+1 =2
(or)
d. Use can add 1 , to the mid of row & Column count when the modules
division is greater than 0
Ex: Row count is : 3 , Column count is : 3
Divide : 3%2 Divide : 3%2
Ans : 1 Ans : 1
Add : 1+1 = 2(Q value) Add: 1+1 =2 (Q value)
e. After adding , now take those Row & Column value to retrieve the
cell data with GetCellData method
Ex: CellData = Browser("Browser").Page("Page").WebTable("html
tag:=TABLE").GetCellData(2,2)
Please suggest me , if i go wrong in logic
Note: This is only applicable only when row count & column count are odd
values
On Sun, Sep 1, 2013 at 12:57 PM, Abhi Nav <[email protected]>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.
>
--
--
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.
<<image.png>>
<<image.png>>
