![]() |
VB script in QTP script - 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: VB script in QTP script (/Thread-VB-script-in-QTP-script) |
VB script in QTP script - karraaruna - 12-07-2010 Hi, I have a requirement in my QTP script if the save button is enabled it should save else ignore and continue to the next step. How can I capture that in my script. here is the message iam getting when executing the script and the save button is disabled. Object is disabled Code: JavaWindow("Client Information System").JavaButton("Vbutton").click I want to handle this message programatically. Now iam clicking on skip button to skip and continue. Thanks very much in advance. Regards RE: VB script in QTP script - frebuffi - 12-07-2010 Hello, Try this: Code: var=JavaWindow("Client Information System").JavaButton("Vbutton").GetROProperty ("visible") or Try: Code: var=JavaWindow("Client Information System").JavaButton("Vbutton").GetROProperty ("enable") RE: VB script in QTP script - duggisrinivasarao - 12-08-2010 Code: If JavaWindow("Client Information System").JavaButton("Vbutton").GetROProperty("enable") Then RE: VB script in QTP script - karraaruna - 12-08-2010 Thanks Very much it worked. |