WebEdit name property - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: WebEdit name property (/Thread-WebEdit-name-property) |
WebEdit name property - Charanpreet - 04-13-2011 WebEdit name property contains value as Test[0].zip. But whle running the script am unable to recognize the object. Am using following code snippet:- Code: Set objTextField=Description.create() I think in name since [] and . is used. This might be creating problem. How can I handle this type of name of object. IF REGEX is used, then how can i use it. Thanks RE: WebEdit name property - Jay - 04-13-2011 try with Code: objTextFiled("name").Regularexpression = "False" RE: WebEdit name property - Charanpreet - 04-13-2011 Not working. Getting type mismatch for regular expression line. RE: WebEdit name property - Jay - 04-13-2011 try this... objTextFiled ("name").regularExpression = False search on help to get proper Syntax if this not work RE: WebEdit name property - Charanpreet - 04-13-2011 Same error. Type mismacth. RE: WebEdit name property - Jay - 04-13-2011 try \ before to ignore QTP to indentify as a regular expression Like Test\[\0\]\.zip RE: WebEdit name property - Charanpreet - 04-13-2011 wow. it worked for me when I used Test\[0\]\.zip insrtead of Test\[\0\]\.zip . Thanks RE: WebEdit name property - Jay - 04-13-2011 Great...... You not blindly following |