Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expressions for SAP objects and "id" property
02-05-2010, 03:42 PM
Post: #1
Regular Expressions for SAP objects and "id" property

Hello.
I have a problem with "id" SAP objects property while Descriptive Programming.

I have SAPGuiEdit object which have following properities.
name=VBAK-AUART
id=/app/con[0]/ses[0]/wnd[0]/usr/ctxtVBAK-AUART

I want to setFocus on this field
When I use regular expression in name property like this

sapguisession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiEdit("name:=.*-AUART").SetFocus

It is working fine
But when I want to use it in id property f.e

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??
Find all posts by this user
Quote this message in a reply
04-27-2010, 07:56 AM
Post: #2
RE: Regular Expressions for SAP objects and "id" property
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Need help on using regular expressions on Java Window's title qa_tester 3 1,155 02-13-2012 10:56 PM
Last Post: madsenfr
  java window titles & regular expressions jotdog2 1 858 02-13-2012 10:55 PM
Last Post: madsenfr
  Process to use Regular Expressions in QTP using screen shots. yvslraotesting@gmail.com 1 494 01-31-2012 12:45 PM
Last Post: basanth27
  Regular Expressions Venkat Goturi 2 1,119 08-19-2010 06:22 PM
Last Post: Jyobtech
  Regular expression for SAP lakshjai 19 4,259 02-19-2010 12:51 AM
Last Post: luismiguel_29

Forum Jump:


User(s) browsing this thread: 1 Guest(s)