WinObject and RegularExpression - 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: WinObject and RegularExpression (/Thread-WinObject-and-RegularExpression) |
WinObject and RegularExpression - softwareEngineer - 07-20-2012 Hi there, I have a little problem (for you ) I have this QTP script : Code: Window("MyApplication version 14").Window("Main 1) added regular expression in the Window("MyApplication version 14") of constant type in the text fileld : MyApplication.* I runned it .... OK !!!! 2) the same thing for WinObject("Connection Test: OK").Click runned it ..... NOT OK is it a problem with regular expression and win object ? I don´t think so .. can you help me ? thanks ... RE: WinObject and RegularExpression - Ankesh - 07-20-2012 plz Post ur code which is not working. RE: WinObject and RegularExpression - softwareEngineer - 07-20-2012 This code does not work with the regular expression setted as i wrote .... i tried to keep the code simple in order to focus the problem ... Thanks RE: WinObject and RegularExpression - softwareEngineer - 07-23-2012 I´ve attached an image on what I´ve done ... I hope this help ... thanks . As I said my problem is on WinObject "Connection" ... on other objects (Windows "Phone", Windows "Main Screen") it works .... [attachment=1070] RE: WinObject and RegularExpression - K Gaurav Varshney - 07-24-2012 There must be more than one object that are matching the above shown property of win object. Check it out by spying more and more objects. Regards, k |