cancel
Showing results for 
Search instead for 
Did you mean: 

Want to capture the Total amount of in the last row of GUILabel.

dkum7526
Member
0 Kudos

Below is the screen shot of the User area from which i need to find the last row highlighted in yellow, To capture the Total amount in local currency column. Some time need to scroll until the last row appears using the Vertical Scroll

maximum_scroll = session.findById("wnd[0]/usr/").verticalScrollbar.Maximum

but even maximum scroll some time does not help and show the last total row.

Please help how to find the last row. Please see the code i have created to find the last row

Do

session.findById("wnd[0]/usr").verticalScrollbar.Position = maximum_scroll + 5

For Each child In session.findById("wnd[0]/usr/").Children

If child.Text = "Amount in local cur." Then

Var = Split(Get_Regex(child.ID), ",")

row_no = Var(0)

ElseIf child.Text = "*" Then

Var = Split(Get_Regex(child.ID), ",")

col_no = Var(1)

End If

Next

Loop Until col_no > 0 And row_no > 0 Or maximum_scroll > 0

Accepted Solutions (0)

Answers (0)