![]() |
Execute button of putton won't be clicke automaticly in UFT (VB) - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Execute button of putton won't be clicke automaticly in UFT (VB) (/Thread-Execute-button-of-putton-won-t-be-clicke-automaticly-in-UFT-VB) |
Execute button of putton won't be clicke automaticly in UFT (VB) - MarUFT - 11-18-2016 Hello dear UFT members, I am new on learning UFT and I have an error , so I hope you can help me as soon as possible I want to launch the exe of putty then click on "Execute" button then enter login , password.... I did all but the click on the button is not working , this is the program on VB: 'Window("putty_2").WinObject("Vue d’éléments").WinList("Vue d’éléments").Activate "putty.exe" 'Window("putty_2").Dialog("Fichier ouvert - Avertissement_2").WinButton("&Exécuter").click Window("PuTTY Configuration_2").Activate Window("PuTTY Configuration").WinList("Saved Sessions").Select "openvm4" Window("PuTTY Configuration").WinButton("Open").Click Window("PuTTY").Click Window("PuTTY").Type "User" Window("PuTTY").Type micReturn wait(2) Window("PuTTY").Type "Password" Thanks in advance RE: Execute button of putton won't be clicke automaticly in UFT (VB) - Ankur - 11-19-2016 Try to launch the Putty application using SystemUtil.Run command. Syntax Code: SystemUtil.Run (filename,[parameters],[path],[operation],[mode]) arguments in square brackets are optional. Example: This will launch the IE application. Code: SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE","","C:\Program Files\Internet Explorer","open" RE: Execute button of putton won't be clicke automaticly in UFT (VB) - MarUFT - 11-21-2016 Thank You Ankur for your reply I am actually launching putty by the same command you give below but . The application is launchedbut I have to click manually on button "Execute" Code: SystemUtil.Run ("c:puttyputty.exe") I need to know how to click on it automaticly , I tried with this code but not working Code: Window("PuTTY Configuration").WinButton("Exécuter").Click Thank you in advance for your help RE: Execute button of putton won't be clicke automaticly in UFT (VB) - Ankur - 11-21-2016 Is the object added in the object repository? I see no problem clicking on any of the buttons in Putty dialog box. |