Reg Exp issue in DP (.net with infragistic conrols) - 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: Reg Exp issue in DP (.net with infragistic conrols) (/Thread-Reg-Exp-issue-in-DP-net-with-infragistic-conrols) |
Reg Exp issue in DP (.net with infragistic conrols) - quest_prima - 10-27-2010 I I am using DP. The key valuefor the object is changing every time. Ex: Key is ProductsSummary-ultraGrid1-c9a07242-5879-403d-8388-83761c187357-Summary. The c9a07242-5879-403d-8388-83761c187357 values are changing. How can i create pattern like: ProductsSummary-ultraGrid1.*Summary. So that QTP will ignore the characters between summary and ultragrid. How can i create the reg expression pattern and pass the variable to the script below: cToolbars.ClickRibbonTool strMenu & ":" & strGroup , strKey Thanks in advance. RE: Reg Exp issue in DP (.net with infragistic conrols) - A.Saini - 10-27-2010 Hi Prima, Is it mandatory to include summary in the regular expression in this case? If no, than use "ProductsSummary-ultraGrid1.*". If yes, please send the code you are using right now. |