Error when using Ranorex.Text
Posted: Wed Feb 05, 2014 11:50 am
Hello All,
I written the following function in VB.net to verify if a text box is present
But i am getting the following exception
A first chance exception of type 'Ranorex.CapabilityNotSupportedException' occurred in Ranorex.Core.dll
Ranorex.CapabilityNotSupportedException: The element does not support the required capability 'text'.
at Ranorex.Adapter.Create[T](Element element)
at Ranorex.Adapter.FindSingle[T](RxPath path)
Please help!!!
I written the following function in VB.net to verify if a text box is present
Code: Select all
Public Function findTxtBox(IdentifierXpath As String, strTxt As String)
Dim txtBox As Ranorex.Text
Try
Delay.Milliseconds(5000)
txtBox = form.FindSingle(Of Ranorex.Text)(IdentifierXpath)
'txtBox = Host.Local.FindSingle(Of Ranorex.Text)(IdentifierXpath) -----> I have also tried this
If txtBox.Visible() = False Then
'throw an exception
End If
Catch ex As Exception
MsgBox("Exception : " & ex.ToString)
End Try
End Try
End Function
A first chance exception of type 'Ranorex.CapabilityNotSupportedException' occurred in Ranorex.Core.dll
Ranorex.CapabilityNotSupportedException: The element does not support the required capability 'text'.
at Ranorex.Adapter.Create[T](Element element)
at Ranorex.Adapter.FindSingle[T](RxPath path)
Please help!!!