Forum Discussion
HKosova
13 years agoSmartBear Alumni (Retired)
Hi Matthew,
Add the AutomatedQA.script.dll assembly to your Visual Basic .NET project and use New var(test_object):
Alternatively, you can change your C# method to accept object instead of var, and cast the object to var in the method code:
However, we strongly recommend using a single language for your Connected Applications to avoid interoperability issues.
What is required for me to cast a test complete object into a TestComplete var type?
Add the AutomatedQA.script.dll assembly to your Visual Basic .NET project and use New var(test_object):
Dim txtPermitNo As New var(window.txtPermitNo)
CamaUtils.SetTextFieldValue(txtPermitNo, action.Attributes.Item(PERMIT_NUM_PARAM))
Alternatively, you can change your C# method to accept object instead of var, and cast the object to var in the method code:
public static void SetTextFieldValue(object textfieldobject, string value, bool useTabToExit = true)
{
var textfield = new var(textfieldobject);
However, we strongly recommend using a single language for your Connected Applications to avoid interoperability issues.
Related Content
- 5 years agonoittom
- 11 years agoashok_natar
Recent Discussions
- 3 days agoMW_Didata