Hi,
I am happy to see your quick responses for the problems which was faced by the users. I am having a problem. I am using TryFindSingle to select the path and after that i am selecting the some check boxes.
Here is my code. There are so many divtag's in str_1 but each divtag has the same number of checkboxes.
So if a_found is f=giving me path like ("/dom......../div/div/div/table/tbody/tr/td/a[.....]")
Dim str_1 as String = "/dom[@domain......"
Dim child_atag As String = ""+str_1+"table/tbody/tr/td/a[@InnerText='"+item.ToString+"']"
Dim rxpath as String = child_atag.ToString
Dim a_found As Boolean =main_divtag.TryFindSingle(rxpath,item1)
If a_found Then
Dim child_alt As String = ""+str_1+"table/tbody/tr/td/a/img[@Alt='Expand "+item.ToString+"']"
Dim iteeem as Ranorex.ImgTag = Nothing
Dim elem As Boolean = main_divtag.TryFindSingle(child_alt,iteeem)
If elem Then
iteeem.PerformClick()
Delay.Milliseconds(3000)
return iteeem.GetPath().ToString
Else
Dim child_altimg as String = "./img[@Alt='Collapse "+item.ToString+"']"
Dim iteem as Ranorex.ImgTag = Nothing
Dim elem1 As Boolean = main_divtag.TryFindSingle(child_altimg,iteem)
If elem1 Then
msbx(iteem.getpath().tostring) -----> ( this is showing only the img tag's( last node path) not full path)
return iteem.GetPath().ToString
Else
'Error
End If