Regular Expressions for SAP objects and "id" 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: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: Regular Expressions for SAP objects and "id" property (/Thread-Regular-Expressions-for-SAP-objects-and-id-property) |
Regular Expressions for SAP objects and "id" property - bajer - 02-05-2010 Hello. I have a problem with "id" SAP objects property while Descriptive Programming. I have SAPGuiEdit object which have following properities. Code: name=VBAK-AUART When I use regular expression in name property like this Code: sapguisession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiEdit("name:=.*-AUART").SetFocus But when I want to use it in id property f.e Code: sapguisession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiEdit("id:=.*ctxtVBAK-AUART").SetFocus I get: Cannot identify the object "SAPGuiEdit" (of class SAPGuiEdit). Verify that this object's properties match an object currently displayed in your application. How can I use RegExp in id property for SAP objects?? RE: Regular Expressions for SAP objects and "id" property - fyjm - 04-27-2010 Are there any other object with this property as well? id = /app/con[0]/ses[0]/wnd[0]/usr/ctxtVBAK-AUART maybe this property is not unique one to recognise this object u can create child objects set with this property and msgbox the count of the set if there are several objects, you need to change ur expression |