Regular expression help - 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: Regular expression help (/Thread-Regular-expression-help) |
Regular expression help - geethwind - 01-20-2010 can anyone help me figuring out the regular expression for the below kind of object Code: OracleFormWindow("ADANE,EUTINIO").OracleButton("Service").Click i tried giving like Code: ((A-Z)*/,(A-Z)*/s(A-Z)*)) its not working any help is highly appreciated. -g RE: Regular expression help - Saket - 01-20-2010 hey g, set the regular expression pattern like "[a-zA-Z],[a-zA-Z]" and let me know how it goes. RE: Regular expression help - geethwind - 01-20-2010 Hey Saket this doesn't work...i get the below error Run Error : Cannot find the "Service" object's parent "ADANE,EUTINIO" (class OracleFormWindow). Verify that parent properties match an object currently displayed in your application. Line (13): Code: "OracleFormWindow("ADANE,EUTINIO").OracleButton("Service").Click". RE: Regular expression help - Saket - 01-21-2010 sorry for misleading you, I thought you just need the regular for the text there. try this- In your OR, regualrise the text for form window with ".*" RE: Regular expression help - geethwind - 01-22-2010 Hey, Does that mean, do I need to change in the Name of the object and in the short title property ..selecting as the regular expression and giving ".*" over there? i tried giving this expression at both places but its not working the code is looking like Code: OracleFormWindow(".*").OracleButton("Service").Click and again it gives me the same error. Thanks RE: Regular expression help - sreekanth chilam - 01-22-2010 If "ADANE,EUTINIO" value would remains constant means then try to Regularize the 'OracleFormWindow' Object's property value in Object Repository as given below. Code: OracleFormWindow("ADANE,EUTINIO.*").OracleButton("Service").Click RE: Regular expression help - luismiguel_29 - 02-19-2010 Friend The regulate the expression level is not encoded, attach it to the repository .. |