on 12-27-2023 8:17 AM
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
User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.