QTP & Putty - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: QTP & Putty (/Thread-QTP-Putty) |
QTP & Putty - aditi - 09-03-2009 Hi QTPKing/Basanth, I am back again with aother question.Let me explain you my problem: 1. I have to launch putty via QTP. <completed> 2. I have to cd into some directory..<completed> 3. Change some values as....<this is where I have problem> Password = SomeValue My problem: I want to change the text SomeValue to some other value. With GetVisibleText QTP is able to see the text "Password = SomeValue" so I did Code: getVisibleText = window("nativeclass:=PUTTY").GetVisibleText This code will just type "Dt0005". But ideally what I want is to Delete/Remove the existing value and enter the new value as Password = "4jikloop" to Password = "Dt0005" Please help me how to remove the existing value. How to instruct QTP to delete the value after "=" and enter new value. Hope I explain my question clearly. Thanks Aditi RE: QTP & Putty - basanth27 - 09-03-2009 Aditi - Have you tried, Code: getVisibleText = window("nativeclass:=PUTTY").GetVisibleText |