Forum Discussion
HKosova
Alumni
9 years agoHi Prabhakar,
Just FYI, the Connected Apps libraries are deprecated and replaced by TestLeft. TestLeft provides strongly-typed .NET wrappers around the TestComplete engine, accessible using the regular C# syntax (no square brackets!), and there's no need to have a TestComplete project running at the same time.
Using TestLeft, your code would look like this:
using SmartBear.TestLeft;
using SmartBear.TestLeft.TestObjects;
using SmartBear.TestLeft.TestObjects.Swing;
IWindow panel;
Driver.Find<IProcess>(new ProcessPattern()
{
ProcessName = "java"
}).TryFind<IWindow>(new AWTPattern()
{
JavaFullClassName = "*TouchTable"
}, 30000, out panel);
if (panel != null) {
panel.Click();
}
We strongly recommend that users who are new to ConnectedApps consider using TestLeft instead.