Need to retrieve List attribute of Live Elements (JavaList)
Posted: Mon Jun 04, 2018 8:43 pm
Thanks in advance... I have attached the screen shot for better understanding...
I am very new to this Ranorex and VB.Net world. I appreciate any feed back towards this
issue.
Problem Description -
I have javalist (total 29 items) to go thru and read its 'Live Element' attributes.
I can loop thru the entire list item (I got 29 of them). However, I am not quite sure how to get Live element of an attribute. I am using vb.net.
Private Sub Init()
' Your recording specific initialization code goes here.
Dim RanorexList As Ranorex.List
RanorexList = "/form[@title='GAR1']/container[@name='m_introPanel']//container[@name='cmConversionRatePanel']/container[@name='cmConversionRatesMaintenance']/?/?/list[@name='cmConversionRatesMaintenance']"
Dim count As Integer
Dim i As Integer
count = RanorexList.Items.Count
Delay.Milliseconds(10)
For i=0 To count-1
Dim myItem As String
myItem = RanorexList.Items(i).Text
MsgBox(myItem)
'myItem is returning (com.ebsdr.bn.bp.subsystems.credit.untrusted.CurrencyRateC@cbdef5)
'However, I need to capture attribute value of 'Name' property.
Next
End Sub
I am very new to this Ranorex and VB.Net world. I appreciate any feed back towards this
issue.
Problem Description -
I have javalist (total 29 items) to go thru and read its 'Live Element' attributes.
I can loop thru the entire list item (I got 29 of them). However, I am not quite sure how to get Live element of an attribute. I am using vb.net.
Private Sub Init()
' Your recording specific initialization code goes here.
Dim RanorexList As Ranorex.List
RanorexList = "/form[@title='GAR1']/container[@name='m_introPanel']//container[@name='cmConversionRatePanel']/container[@name='cmConversionRatesMaintenance']/?/?/list[@name='cmConversionRatesMaintenance']"
Dim count As Integer
Dim i As Integer
count = RanorexList.Items.Count
Delay.Milliseconds(10)
For i=0 To count-1
Dim myItem As String
myItem = RanorexList.Items(i).Text
MsgBox(myItem)
'myItem is returning (com.ebsdr.bn.bp.subsystems.credit.untrusted.CurrencyRateC@cbdef5)
'However, I need to capture attribute value of 'Name' property.
Next
End Sub