Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Execute button of putton won't be clicke automaticly in UFT (VB)
#1
Solved: 7 Years, 11 Months, 2 Weeks ago
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
Reply
#2
Solved: 7 Years, 11 Months, 2 Weeks ago
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"
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 7 Years, 11 Months, 2 Weeks ago
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
Reply
#4
Solved: 7 Years, 11 Months, 2 Weeks ago
Is the object added in the object repository? I see no problem clicking on any of the buttons in Putty dialog box.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to execute script shanthalaAR 0 2,062 06-27-2015, 03:53 AM
Last Post: shanthalaAR
  How to Execute a testset from QC using OTA framework AutomationTester2011 12 52,446 01-21-2015, 09:22 PM
Last Post: karthik_sanakran
  Is there a possible way to execute sql in QTP using 'WITH' clause shruthic 0 3,090 04-26-2014, 11:42 PM
Last Post: shruthic
  Execute scripts sherst 0 2,900 01-11-2013, 01:46 AM
Last Post: sherst
  QTP Opens a popup window but won't recognize the buttons in the window Blaster0007 4 7,851 07-20-2012, 12:03 AM
Last Post: sree.85

Forum Jump:


Users browsing this thread: 1 Guest(s)