Below is the sample code generated from LeanFT with M.S. Visual Studio tool on FileZilla application.
Desktop.Describe<IWindow>(new WindowDescription
{
Text = @"FileZilla"
}).Describe<HP.LFT.SDK.StdWin.IEditField>(new HP.LFT.SDK.StdWin.EditFieldDescription
{
AttachedText = @"&Username:",
NativeClass = @"Edit"
}).SetText("test");
Desktop.Describe<IWindow>(new WindowDescription
{
Text = @"FileZilla"
}).Describe<HP.LFT.SDK.StdWin.IEditField>(new HP.LFT.SDK.StdWin.EditFieldDescription
{
AttachedText = @"&Host:"
}).SetText("10.22.33.44");
Desktop.Describe<IWindow>(new WindowDescription{Text = @"FileZilla"}).Describe<HP.LFT.SDK.StdWin.IEditField>(new HP.LFT.SDK.StdWin.EditFieldDescription
{AttachedText = @"Pass&word:"}).SetSecure("566d4b0d9f90740f8d533a7d91dde4b001c07aee");
Desktop.Describe<IWindow>(new WindowDescription
{
Text = @"FileZilla"
}).Describe<HP.LFT.SDK.StdWin.IButton>(new HP.LFT.SDK.StdWin.ButtonDescription
{
Text = @"&Quickconnect"
}).Click();
Desktop.Describe<IWindow>(new WindowDescription
{
Text = @"FileZilla"
}).Describe<HP.LFT.SDK.StdWin.IEditField>(new HP.LFT.SDK.StdWin.EditFieldDescription
{
AttachedText = @"&Username:",
NativeClass = @"Edit"
}).SetText("test");
Desktop.Describe<IWindow>(new WindowDescription
{
Text = @"FileZilla"
}).Describe<HP.LFT.SDK.StdWin.IEditField>(new HP.LFT.SDK.StdWin.EditFieldDescription
{
AttachedText = @"&Host:"
}).SetText("10.22.33.44");
Desktop.Describe<IWindow>(new WindowDescription{Text = @"FileZilla"}).Describe<HP.LFT.SDK.StdWin.IEditField>(new HP.LFT.SDK.StdWin.EditFieldDescription
{AttachedText = @"Pass&word:"}).SetSecure("566d4b0d9f90740f8d533a7d91dde4b001c07aee");
Desktop.Describe<IWindow>(new WindowDescription
{
Text = @"FileZilla"
}).Describe<HP.LFT.SDK.StdWin.IButton>(new HP.LFT.SDK.StdWin.ButtonDescription
{
Text = @"&Quickconnect"
}).Click();
Hello,
ReplyDeleteThe Article on HP LeanFT Desktop Automation is nice. It give detail information about it .Thanks for Sharing the information on Automation Testing. Software Testing Company
ReplyDeleteMy friend suggested I may like this web site. He used to be entirely right.
This submit actually made my day.
alternatives to kissanime