![]() |
Help ME!!! - 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: Help ME!!! (/Thread-Help-ME) |
Help ME!!! - gutocruz03 - 07-30-2010 I have a validation in a test qtp and accurate at any given time to go to line 7, or if you go off to the next "next", here the code of "if" I have to go to the next "next ". Could anyone help me with this validation? Code: If Browser("").Page("Exceller 2.32||.Centro_3").Frame("frameResolucao_3").WebEdit("txtComments").WaitProperty("disabled", 0) Then ![]() RE: Help ME!!! - PrabhatN - 07-30-2010 Hi gutocruz03, You have not conveyed what yout problem is. And you didn't make it clear enough so that some one can understand (Try reading by yourself once and you'll get to know) ![]() If I am right understanding your problem (you want to go to line 7 if the WedEdit is disabled, if it is enabled then you want to set "OK" on it) then following code may help you. Code: getStatus = Browser("").Page("Exceller 2.32||.Centro_3").Frame("frameResolucao_3").WebEdit("txtComments").GetROProperty("disabled") You can not use GoTo statement in VBScript (as far as I know, not sure though), but still it serves your purpose because if the WebEdit is enabled it will set "OK" there, if it is not then automatically it goes for the next step. Let me know..... |