How to record the Enter button that we use through key board - 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: How to record the Enter button that we use through key board (/Thread-How-to-record-the-Enter-button-that-we-use-through-key-board) |
How to record the Enter button that we use through key board - Ganta - 11-05-2009 Hi, I need to test for web page which has Quick Search defaulted to some value. Now i must check when i click on enter it should stay in the same page.Now, when i am recording QTP is not identifying enter.So, how can i test this trrough automation. Thanks Ramakrishna RE: How to record the Enter button that we use through key board - venkatbatchu - 11-05-2009 Hi, Use this script Enter button will be triggered wherever it is required. Code: Set WshShell = CreateObject("WScript.Shell") RE: How to record the Enter button that we use through key board - Ganta - 11-05-2009 Hi Venkat, Thanks for giving me immediate Reply. I used this Quote but it is not clicking Enter when this is Executed. Thanks Ramakrishna RE: How to record the Enter button that we use through key board - venkatbatchu - 11-05-2009 Code: Set WshShell = CreateObject("WScript.Shell") RE: How to record the Enter button that we use through key board - Ganta - 11-17-2009 Hi, I used the same code, but when i am executing the test it is not able to take Enter.Please some one help me.. RE: How to record the Enter button that we use through key board - v_selvam - 11-18-2009 Ganta, try this code below Code: Browser("browsername").page("pagename").Activate RE: How to record the Enter button that we use through key board - Ganta - 11-18-2009 Hi Selvam, I used the above mentioned code,but i am getting an error Object doesnot support this property or method Code: Browser("browsername").page("pagename").Activate RE: How to record the Enter button that we use through key board - basanth27 - 11-20-2009 Have you tried with the "DeviceReplay" ? There is a option called "presskey". |